CVE-2022-36364
Apache Calcite Avatica JDBC driver `httpclient_impl` connection property can be used as an RCE vector
- Published
- Updated
- Reserved
- Assigned by
- apache
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | High8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 3.2% · top 12% of all CVEs (5 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.8.
Weakness
Affected products
Apache Software Foundation · Apache Calcite Avatica
- affected Apache Calcite Avatica – < 1.22.0
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Mavenorg.apache.calcite.avatica:avatica-coreGHSA-w7f5-jrpr-5c2m (opens in a new tab)
References (2)
- https://lists.apache.org/thread/5csdj8bv4h3hfgw27okm84jh1j2fyw0c (opens in a new tab)x_refsource_MISCx_transferred
- [oss-security] 20220728 CVE-2022-36364: Apache Calcite Avatica JDBC driver `httpclient_impl` connection property can be used as an RCE vector (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-w7f5-jrpr-5c2m (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2022-36364)Record last updated .