{"id":"CVE-2022-39135","published":"2022-09-11T00:00:00Z","modified":"2024-08-03T11:10:32Z","title":"Apache Calcite: potential XEE attacks","vendor":"Apache","product":"Apache Calcite","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.02737,"percentile":0.86502,"provenance":"source"},"cwes":[{"id":"CWE-611","name":"Improper Restriction of XML External Entity Reference"}],"references":[{"url":"https://lists.apache.org/thread/ohdnhlgm6jvt3srw8l7spkm2d5vwm082","tags":[]},{"url":"http://www.openwall.com/lists/oss-security/2022/11/21/3","tags":["mailing-list"]}],"priority":{"score":17.3,"factors":[{"name":"EPSS percentile","points":17.3}]},"vendorSlug":"apache","affectedVersions":[{"vendor":"Apache Software Foundation","product":"Apache Calcite","versions":[">= 1.22.0, < 1.32.0"]}],"affected":[{"ecosystem":"Maven","package":"org.apache.calcite:calcite-core","vulnerableRanges":[">=1.22.0, <1.32.0"],"patched":["1.32.0"],"from":["GHSA-fj2m-w3wv-x9pr"],"provenance":"source"}],"summary":{"text":"The flaw is in Apache Calcite's SQL operators EXISTS_NODE, EXTRACT_XML, XML_TRANSFORM and EXTRACT_VALUE, which do not restrict XML External Entity references in their configuration.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:34:28Z"},"euvd":{"id":"EUVD-2022-6798","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2020-13955","published":"2020-10-09","fixed":"1.26.0","kev":false,"link":{"from":"CVE-2020-13955","to":"CVE-2022-39135","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:org.apache.calcite:calcite-core","fromFixed":"1.26.0","toFixed":"1.32.0","daysApart":702}]}},{"cve":"CVE-2022-39135","published":"2022-09-11","fixed":"1.32.0","kev":false},{"cve":"CVE-2026-46718","published":"2026-06-02","fixed":"1.42.0","kev":false}],"package":"Maven:org.apache.calcite:calcite-core"}}