CVE-2022-39135 json
Apache Calcite: potential XEE attacks
published 2022-09-11 4 y ago modified 2026-09-29 40 d ago also GHSA-fj2m-w3wv-x9pr , EUVD-2022-6798
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.2%
- EPSS 2.2% chance of exploitation in 30 days, percentile 83%
- public exploits
- 0
- none known
Summary
Apache Calcite 1.22.0 introduced the SQL operators EXISTS_NODE, EXTRACT_XML, XML_TRANSFORM and EXTRACT_VALUE do not restrict XML External Entity references in their configuration, making 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.
Patch / fix
- maven org.apache.calcite:calcite-core 1.32.0
- Apache Software Foundation Apache Calcite 1.32.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2022-39135 updated cvss 7.5
calcite: XXE via SQL operators
-
Red Hat Fuse 7 calcite calciteaffected: no fix available “Fix deferred”
-
Red Hat Data Grid 8 calcite calcite Red Hat Integration Camel K 1 calcite calcite Red Hat JBoss Data Grid 7 calcite calcitenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.25% chance of exploitation in the next 30 days, higher than 83% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.apache.calcite:calcite-core | >=1.22.0, <1.32.0 |
1.32.0 |
Affected products
- Apache Software Foundation Apache Calcite
Classification
- Weakness
-
- CWE-611 Improper Restriction of XML External Entity Reference
References
-
github.com
/apache/calcite/commit/1ddc1c3a0c61
web
-
github.com
/apache/calcite/commit/ba80b9156afc0db26b194d97a031fcc0dc7f4c03
web
-
lists.apache.org
/thread/ohdnhlgm6jvt3srw8l7spkm2d5vwm082
web, mailing-list, vendor-advisory
-
openwall.com
/lists/oss-security/2022/11/21/3
mailing-list, web, mitigation, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-39135
advisory
-
calcite.apache.org
/news/2022/09/10/release-1.32.0
web
-
github.com
/apache/calcite
package
-
github.com
/apache/calcite/blob/calcite-1.22.0/core/src/main/java/org/apache/calcite/runtime/XmlFunctions.java
web
-
github.com
/apache/calcite/blob/calcite-1.31.0/core/src/main/java/org/apache/calcite/runtime/XmlFunctions.java
web
-
github.com
/apache/calcite/blob/calcite-1.32.0/core/src/main/java/org/apache/calcite/runtime/XmlFunctions.java
web
-
github.com
/apache/calcite/tree/calcite-1.19.0/core/src/main/java/org/apache/calcite/runtime
web
-
issues.apache.org
/jira/browse/CALCITE-5263
web
-
security.snyk.io
/vuln/SNYK-JAVA-ORGAPACHECALCITE-3021143
web
Sources
- CVE List CVE-2022-39135
- GitHub Advisory GHSA-fj2m-w3wv-x9pr
- NVD CVE-2022-39135
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.