CVE-2022-36364 json
Apache Calcite Avatica JDBC driver `httpclient_impl` connection property can be used as an RCE vector
published 4y ago modified last mo. also GHSA-w7f5-jrpr-5c2m , EUVD-2022-6428
- cvss
- 8.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.2%
- EPSS 3.2% chance of exploitation in 30 days, percentile 88%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- maven org.apache.calcite.avatica:avatica-core 1.22.0
- Apache Software Foundation Apache Calcite Avatica 1.22.0
Is CVE-2022-36364 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerExploit prediction
3.16% chance of exploitation in the next 30 days, higher than 88% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.apache.calcite.avatica:avatica-core | <1.22.0 |
1.22.0 |
Affected products
- Apache Software Foundation Apache Calcite Avatica
Classification
- Weakness
-
- CWE-665 Improper Initialization
References
-
github.com
/apache/calcite-avatica/commit/0c097b6a685fc1f97f151505a219976f15ed0c4c
web
-
lists.apache.org
/thread/5csdj8bv4h3hfgw27okm84jh1j2fyw0c
web, mailing-list, vendor-advisory
-
openwall.com
/lists/oss-security/2022/07/28/1
mailing-list, web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-36364
advisory
-
github.com
/apache/calcite-avatica
package
Sources
- CVE List CVE-2022-36364
- GitHub Advisory GHSA-w7f5-jrpr-5c2m
- NVD CVE-2022-36364
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.