CVEfocus › CVE database › CVE-2021-40690

CVE-2021-40690Bypass of the secureValidation property

CVSS 7.5 HighEPSS 7.4% (higher than 95% of CVEs)Published 2021-09-19Updated 2026-10-08Assigner: apache

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.

CWE-200

What to do

Fixed builds are available from Debian, Maven, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

6Fixed
2Fix pending
4Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04libxml-security-javaNot affected
vulnerable_code_not_present
Ubuntu 25.10libxml-security-javaNot affected
vulnerable_code_not_present
Ubuntu 24.04libxml-security-javaNot affected
vulnerable_code_not_present
Ubuntu 22.04libxml-security-javaNot affected
vulnerable_code_not_present
Ubuntu 20.04libxml-security-javaFixed2.0.10-2+deb11u1build0.20.04.1UBUNTU-CVE-2021-40690
Ubuntu 18.04libxml-security-javaFixed2.0.10-2~18.04.1UBUNTU-CVE-2021-40690
Ubuntu 16.04libxml-security-javaFix pending1.5.6-1ubuntu0.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2021-40690
Ubuntu 14.04libxml-security-javaFix pending
Debian 14libxml-security-javaFixed2.1.7-1DEBIAN-CVE-2021-40690
Debian 13libxml-security-javaFixed2.1.7-1DEBIAN-CVE-2021-40690
Debian 12libxml-security-javaFixed2.1.7-1DEBIAN-CVE-2021-40690
Maven libraryorg.apache.santuario:xmlsecFixed2.2.3GHSA-j8wc-gxx9-82hx

What the vendor says

As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.