CVE-2022-39135CWE-611

Apache Calcite: potential XEE attacks

published September 11, 2022

CVSS
—
EPSS
2%
Percentile
82.4
In the wild
Unconfirmed
What it is

🚨 Just when you thought XML was a safe bet, a sneaky XML External Entity (XXE) vulnerability is lurking in Apache Calcite 1.22.0! Think of this as an overly trusting restaurant that takes any order from a customer—without checking if it’s safe. If a malicious diner orders an unapproved ingredient, they could wreak havoc in the kitchen! This vulnerability means that an attacker could potentially read sensitive files or even execute arbitrary commands—imagine a rogue diner sneaking into the kitchen and changing the entire menu! The impact can vary based on the permissions of the application user, making it a ticking time bomb for unsuspecting setups.

Put simply

Think of this as an overly trusting restaurant that takes any order from a customer—without checking if it’s safe. If a malicious diner orders an unapproved ingredient, they could wreak havoc in the kitchen! The flaw arises because the SQL operators (EXISTS_NODE, EXTRACT_XML, XML_TRANSFORM, and EXTRACT_VALUE) in Apache Calcite 1.22.0 do not restrict XML External Entity references, allowing an attacker to manipulate XML data in dangerous ways.

What to do

This vulnerability means that an attacker could potentially read sensitive files or even execute arbitrary commands—imagine a rogue diner sneaking into the kitchen and changing the entire menu! The impact can vary based on the permissions of the application user, making it a ticking time bomb for unsuspecting setups. Upgrade to Apache Calcite version 1.32.0 or later to disable Document Type Declarations and XML External Entity resolution for the affected operators. Additionally, review your application settings to ensure robust input validation for XML data. You've got this! Just follow the steps to secure your application and keep those kitchen shenanigans at bay! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.02201 · 82.4th percentile
Weakness
CWE-611 · Improper Restriction of XML External Entity Reference
Published
2022-09-11T00:00Z
EPSS history
Timeline
  • 11 SEP 00:00Z
    Apache Calcite: potential XEE attacks
    cvelistv5