Remote code executionin the org.apache.calcite.avatica:avatica-core package.
No public exploit found; not on exploited lists.
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.
- Upgrade Apache Calcite Avatica to 1.22.0 or later.
- Upgrade org.apache.calcite.avatica:avatica-core (Maven) to 1.22.0 or later.
Affected and fixed versions
From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.
From first report to first attacks
- 21 Jul 2022CVE ID reserved by apache.
- 28 Jul 2022Published in the CVE List.
- 3 Aug 2024CVE record last updated.
Attack code anyone can find
Exploit maturity: No public exploit found.
Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.
Report a link
Nothing on this page links to exploit code right now. To report anything else, write to the contact point in the legal notice.
Same weakness: Improper initialization
- lists.apache.org x_refsource_MISC
- www.openwall.com mailing-list, x_refsource_MLIST
Patchminder. CVE-2022-36364: Remote code execution in the org.apache.calcite.avatica:avatica-core package. https://patchminder.com/cve/cve-2022-36364/ (accessed 5 December 2026).