SecurityContext

CVE-2022-36364: Apache Calcite Avatica - Remote Code Execution

  • Cve: CVE-2022-36364
  • Name: Apache Calcite Avatica - Remote Code Execution
  • 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.
  • Impact: Attackers can execute arbitrary code remotely by loading malicious classes, risking full system compromise.
  • Remediation: Update to version 1.22.0 or later where class interface verification is implemented.
  • Vulnerability type: insecure_deserialization
  • Vulnerability impact: remote_code_execution
  • Requirement type: logged_in
  • Requirements: Attacker needs control over JDBC connection parameters and a vulnerable class in classpath.
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 8.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.03159
  • Epss percentile: 0.88305
  • Assignee: [email protected]
  • Published at: 2022-07-28T09:15:08Z
  • Age in days: 1580
  • Modified at: 2026-06-17T04:53:19Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-36364
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-665Improper Initialization

References

UrlSourceTags
https://lists.apache.org/thread/5csdj8bv4h3hfgw27okm84jh1j2fyw0cnvdMailing List, Vendor Advisory
http://www.openwall.com/lists/oss-security/2022/07/28/1nvdMailing List, Third Party Advisory

Products

ProductAffectedPlatform boundSourcesUrl
apache:apache_calcite_avatica< 1.22.0nonvd/v1/products/apache/apache_calcite_avatica

Projects

RepositoryLink kindsIndexedUrl
apache/calcite-avaticacommit, packageyes/v1/repositories/apache/calcite-avatica

Index

  • Repositories: 7
  • Repositories high signal: 5
  • Packages: 1

Exploitation

  • Remote: yes
  • Authentication required: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts