CVE-2022-36364

Source
https://nvd.nist.gov/vuln/detail/CVE-2022-36364
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-36364.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2022-36364
Aliases
Related
Published
2022-07-28T09:15:08Z
Modified
2024-09-03T04:18:02.857976Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Git / github.com/apache/calcite-avatica

Affected ranges

Type
GIT
Repo
https://github.com/apache/calcite-avatica
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

avatica-1.*

avatica-1.10.0-rc0
avatica-1.11.0-rc0
avatica-1.12.0-rc0
avatica-1.13.0-rc0
avatica-1.14.0-rc0
avatica-1.15.0-rc0
avatica-1.16.0-rc1
avatica-1.17.0-rc0
avatica-1.18.0-rc0
avatica-1.18.0-rc1
avatica-1.19.0-rc0
avatica-1.20.0-rc0
avatica-1.21.0-rc0

calcite-0.*

calcite-0.9.1-incubating
calcite-0.9.2-incubating

calcite-1.*

calcite-1.0.0-incubating
calcite-1.1.0-incubating
calcite-1.2.0-incubating
calcite-1.3.0-incubating
calcite-1.4.0-incubating
calcite-1.5.0
calcite-1.6.0

calcite-avatica-1.*

calcite-avatica-1.7.0
calcite-avatica-1.7.1
calcite-avatica-1.8.0
calcite-avatica-1.9.0

optiq-0.*

optiq-0.4.10
optiq-0.4.11
optiq-0.4.7
optiq-0.4.8
optiq-0.4.9
optiq-0.9.0-incubating

optiq-parent-0.*

optiq-parent-0.4.12
optiq-parent-0.4.13
optiq-parent-0.4.14
optiq-parent-0.4.15
optiq-parent-0.4.16
optiq-parent-0.4.17
optiq-parent-0.4.18
optiq-parent-0.5
optiq-parent-0.6
optiq-parent-0.7
optiq-parent-0.8

rel/avatica-1.*

rel/avatica-1.10.0
rel/avatica-1.11.0
rel/avatica-1.12.0
rel/avatica-1.13.0
rel/avatica-1.14.0
rel/avatica-1.15.0
rel/avatica-1.16.0
rel/avatica-1.17.0
rel/avatica-1.18.0
rel/avatica-1.19.0
rel/avatica-1.20.0
rel/avatica-1.21.0

rel/calcite-0.*

rel/calcite-0.9.1-incubating
rel/calcite-0.9.2-incubating

rel/calcite-1.*

rel/calcite-1.0.0-incubating
rel/calcite-1.1.0-incubating
rel/calcite-1.2.0-incubating
rel/calcite-1.3.0-incubating
rel/calcite-1.4.0-incubating
rel/calcite-1.5.0
rel/calcite-1.6.0

rel/calcite-avatica-1.*

rel/calcite-avatica-1.7.0
rel/calcite-avatica-1.7.1
rel/calcite-avatica-1.8.0
rel/calcite-avatica-1.9.0