GHSA-fj2m-w3wv-x9pr

Suggest an improvement
Source
https://github.com/advisories/GHSA-fj2m-w3wv-x9pr
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/09/GHSA-fj2m-w3wv-x9pr/GHSA-fj2m-w3wv-x9pr.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-fj2m-w3wv-x9pr
Aliases
Related
Published
2022-09-12T00:00:34Z
Modified
2023-11-08T04:10:14.320942Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
Apache Calcite before 1.32.0 vulnerable to potential XML External Entity (XXE) attack
Details

In Apache Calcite prior to version 1.32.0 the SQL operators EXISTSNODE, EXTRACTXML, XMLTRANSFORM and EXTRACTVALUE do not restrict XML External Entity references in their configuration, which makes them vulnerable to a potential XML External Entity (XXE) attack. Therefore any client exposing these operators, typically by using Oracle dialect (the first three) or MySQL dialect (the last one), is affected by this vulnerability (the extent of it will depend on the user under which the application is running). From Apache Calcite 1.32.0 onwards, Document Type Declarations and XML External Entity resolution are disabled on the impacted operators.

Database specific
{
    "nvd_published_at": "2022-09-11T12:15:00Z",
    "github_reviewed_at": "2022-09-15T03:28:19Z",
    "severity": "CRITICAL",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-611"
    ]
}
References

Affected packages

Maven / org.apache.calcite:calcite-core

Package

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

Affected ranges

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

Affected versions

0.*

0.9.1-incubating
0.9.2-incubating

1.*

1.0.0-incubating
1.1.0-incubating
1.2.0-incubating
1.3.0-incubating
1.4.0-incubating
1.5.0
1.6.0
1.7.0
1.8.0
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
1.22.0
1.23.0
1.24.0
1.25.0
1.26.0
1.27.0
1.28.0
1.29.0
1.30.0
1.31.0