GHSA-w7f5-jrpr-5c2m

Suggest an improvement
Source
https://github.com/advisories/GHSA-w7f5-jrpr-5c2m
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/07/GHSA-w7f5-jrpr-5c2m/GHSA-w7f5-jrpr-5c2m.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-w7f5-jrpr-5c2m
Aliases
Related
Published
2022-07-29T00:00:44Z
Modified
2023-11-01T04:59:33.387992Z
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
Apache Calcite Avatica JDBC driver arbitrary code execution
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.

Database specific
{
    "nvd_published_at": "2022-07-28T09:15:00Z",
    "github_reviewed_at": "2022-08-06T09:24:30Z",
    "severity": "HIGH",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-665"
    ]
}
References

Affected packages

Maven / org.apache.calcite.avatica:avatica-core

Package

Name
org.apache.calcite.avatica:avatica-core
View open source insights on deps.dev
Purl
pkg:maven/org.apache.calcite.avatica/avatica-core

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.22.0

Affected versions

1.*

1.9.0
1.10.0
1.11.0
1.12.0
1.13.0
1.14.0
1.15.0
1.16.0
1.17.0
1.18.0
1.19.0
1.20.0
1.21.0