CVE-2022-36364
Description
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.
Weakness
- CWE-665: Improper Initialization
Timeline
- 2022-07-28Published by the CNA08:35 UTC
- 2022-07-29GitHub advisory published (GHSA-w7f5-jrpr-5c2m)1 day after publication
Exploit and advisory records
GitHub advisory GHSA-w7f5-jrpr-5c2m, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Maven org.apache.calcite.avatica:avatica-core | before 1.22.0 | 1.22.0 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| apache apache_calcite_avatica | before 1.22.0fixed in 1.22.0 | 1.22.0 |
References
- https://lists.apache.org/thread/5csdj8bv4h3hfgw27okm84jh1j2fyw0c
- http://www.openwall.com/lists/oss-security/2022/07/28/1
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2022-36364'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2022-36364'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2022-36364'curl 'https://api.contrastcyber.com/cve_products/CVE-2022-36364'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).