CVE-2022-36364: Apache Calcite Avatica JDBC driver arbitrary code execution
8.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.94025%
CWE
Published
7/29/2022
Updated
1/27/2023
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| org.apache.calcite.avatica:avatica-core | maven | < 1.22.0 | 1.22.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from the instantiateClient function's pre-patch behavior where it: 1) Used Class.forName() on user-controlled input without interface validation 2) Directly instantiated the class via reflection using getConstructor(URL.class). The patch adds critical asSubclass(AvaticaHttpClient.class) verification and changes exception handling to prevent invalid class instantiation. The function's pre-1.22.0 implementation matches the CWE-665 (Improper Initialization) description by failing to properly validate class constraints before object creation.