{"id":"CVE-2022-36364","published":"2022-07-28T08:35:10Z","modified":"2024-08-03T10:00:04Z","title":"Apache Calcite Avatica JDBC driver `httpclient_impl` connection property can be used as an RCE vector","vendor":"Apache","product":"Apache Calcite Avatica","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.03159,"percentile":0.88288,"provenance":"source"},"cwes":[{"id":"CWE-665","name":"Improper Initialization"}],"references":[{"url":"https://lists.apache.org/thread/5csdj8bv4h3hfgw27okm84jh1j2fyw0c","tags":["x_refsource_MISC"]},{"url":"http://www.openwall.com/lists/oss-security/2022/07/28/1","tags":["mailing-list","x_refsource_MLIST"]}],"priority":{"score":17.7,"factors":[{"name":"EPSS percentile","points":17.66}]},"vendorSlug":"apache","affectedVersions":[{"vendor":"Apache Software Foundation","product":"Apache Calcite Avatica","versions":[">= Apache Calcite Avatica, < 1.22.0"]}],"affected":[{"ecosystem":"Maven","package":"org.apache.calcite.avatica:avatica-core","vulnerableRanges":["<1.22.0"],"patched":["1.22.0"],"from":["GHSA-w7f5-jrpr-5c2m"],"provenance":"source"}],"summary":{"text":"The Apache Calcite Avatica JDBC driver creates HTTP client instances from class names supplied through the httpclient_impl connection property, but it does not check that the named class implements the expected interface before instantiating it. An attacker who can control JDBC connection parameters, and who has a suitable class on the classpath (one with a URL-accepting constructor that can execute code), can cause arbitrary class loading and, in rare cases, remote code execution.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:28:01Z"},"euvd":{"id":"EUVD-2022-6428","exploited":false,"provenance":"source"}}