CVE-2021-40690 Bypass of the secureValidation property

High 7.5 Published Updated

An attacker can exploit an XPath Transform to extract local XML files due to improper handling of the secureValidation property in Apache Santuario.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2021-40690?

CVE-2021-40690 is a high-severity vulnerability in Apache Cxf, published on 19 Sep 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

All versions of Apache Santuario - XML Security for Java prior to 2.2.3 and 2.1.7 are vulnerable to an issue where the "secureValidation" property is not passed correctly when creating a KeyInfo from a KeyInfoReference element. This allows an attacker to abuse an XPath Transform to extract any local .xml files in a RetrievalMethod element.

Weakness: CWE-200

Which versions are affected by CVE-2021-40690?

4 open source packages ship an affected version, including org.apache.santuario:xmlsec. It affects 18 products.

PackageAffectedFixed in
org.apache.santuario:xmlsec MavenAll versions2.1.7
org.apache.santuario:xmlsec MavenAll versions2.1.7
org.apache.santuario:xmlsec MavenFrom 2.2.02.2.3
org.apache.santuario:xmlsec MavenFrom 2.2.02.2.3

Products include Apache Cxf, Apache Santuario Xml Security for Java, Apache Tomee, Debian Debian Linux, Oracle Agile Product Lifecycle Management, Oracle Commerce Guided Search and 12 more.

How do I fix CVE-2021-40690?

Upgrade org.apache.santuario:xmlsec to a fixed version for your release line: 2.1.7 or 2.2.3.

Is CVE-2021-40690 being exploited?

There is no known exploitation of CVE-2021-40690 in the wild and no public exploit code.

All Apache Cxf vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-40690, DLA-2767-1, DSA-5010-1, GHSA-j8wc-gxx9-82hx, UBUNTU-CVE-2021-40690, USN-5525-1.

Is CVE-2021-40690 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free