Apache Calcite before 1.32.0 vulnerable to potential XML External Entity (XXE) attack
In Apache Calcite prior to version 1.32.0 the SQL operators EXISTS_NODE, EXTRACT_XML, XML_TRANSFORM and EXTRACT_VALUE 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.
GHSA-fj2m-w3wv-x9pr
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:GHSA-fj2m-w3wv-x9pr
org.apache.calcite:calcite-core
Source reference: /affected/0/package/name
- Affected versions
- 1.22.0
Source reference:
/affected/0/versions1.23.0Source reference:
/affected/0/versions1.24.0Source reference:
/affected/0/versions1.25.0Source reference:
/affected/0/versions1.26.0Source reference:
/affected/0/versions1.27.0Source reference:
/affected/0/versions1.28.0Source reference:
/affected/0/versions1.29.0Source reference:
/affected/0/versions1.30.0Source reference:
/affected/0/versions1.31.0Source reference:
/affected/0/versions - Fixed versions
- 1.32.0
Source reference:
/affected/0/ranges - Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "1.22.0"
},
{
"fixed": "1.32.0"
}
]
}
],
"package": {
"name": "org.apache.calcite:calcite-core",
"purl": "pkg:maven/org.apache.calcite/calcite-core",
"ecosystem": "Maven"
},
"versions": [
"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"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/09/GHSA-fj2m-w3wv-x9pr/GHSA-fj2m-w3wv-x9pr.json"
}
}
]- Related CVEs
- CVE-2022-39135
Source reference:
/aliases
Publisher severity
critical
Source reference: /database_specific/severity
- Event
- #31363 · Revision 1
- Added to Heist Feed
- Publisher date