Vulnerability in Apache Calcite Avatica
CVE-2022-36364
Apache Calcite Avatica JDBC driver creates HTTP client instances based on class names provided via `httpclient_impl` connection property; however, the driver does not verify if the class implements the expected interface before instantiating it, which can lead to code execution loaded via arbitrary classes and in rare cases remote code execution. To exploit the vulnerability: 1) the attacker needs to have privileges to control JDBC connection parameters; 2) and there should be a vulnerable class (constructor with URL parameter and ability to execute code) in the classpath. From Apache Calcite Avatica 1.22.0 onwards, it will be verified that the class implements the expected interface before invoking its constructor.
Vulnerability class: Dirty Pipe (CVE-2022-0847)
EPSS: 0.030 (85.9th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
Affected products
- Apache Apache_calcite_avatica
- Apache Software Foundation Calcite Avatica — versions Apache Calcite Avatica
Weakness classification (CWE)
References
- security@apache.org (Mailing List, x_refsource_MISC, Vendor Advisory)
- security@apache.org (mailing-list, x_refsource_MLIST, Mailing List, Third Party Advisory)
Frequently asked questions
- What is CVE-2022-36364?
- CVE-2022-36364 is a high-severity vulnerability in Apache Calcite Avatica, classified under Improper Initialization. CVSS score: 8.8/10. Published 2022-07-28.
- How severe is CVE-2022-36364?
- High severity. CVSS v3 base score is 8.8 out of 10.