Skip to content
OpenAdvisories
High · 7.5 CVE-2021-40690 EUVD-2021-2083GHSA-j8wc-gxx9-82hx

Bypass of the secureValidation property

Published Sep 19, 2021 · Updated Oct 8, 2026 · Assigned by apache

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.

Affected products

VendorProductAffectedFixed
Apache Software Foundation Apache Santuario XML Security for Java – < 2.2.3,2.1.7 2.2.3,2.1.7

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libxml-security-java 2.1.7-1 —
Debian 13 libxml-security-java 2.1.7-1 —
Debian 12 libxml-security-java 2.1.7-1 —
Debian 11 libxml-security-java 2.0.10-2+deb11u1 DSA-5010-1
Debian 10 libxml-security-java 2.0.10-2+deb10u1 DSA-5010-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Debian 9 libxml-security-java 1.5.8-2+deb9u1 DLA-2767-1
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS libxml-security-java 2.0.10-2+deb11u1build0.20.04.1 USN-5525-1
Ubuntu 18.04 LTS libxml-security-java 2.0.10-2~18.04.1 USN-5525-1
Ubuntu 16.04 LTS libxml-security-java No fix yet —
ReleasePackageFixed inAdvisory
Red Hat Single Sign On 7 rh-sso7-keycloak +1 15.0.4-1.redhat_00001.1.el7sso RHSA-2022:0152, RHSA-2022:0151
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-activemq-artemis +15 1.5.5.016-1.redhat_00001.1.ep7.el7 RHSA-2025:4226
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-artemis-native +1 1:1.5.5.016-1.redhat_00001.1.ep7.el7 RHSA-2025:4226
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-jboss-xnio-base 3.5.11-1.Final_redhat_00001.1.ep7.el7 RHSA-2025:4226
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-jsoup 1.14.2-1.redhat_00002.1.ep7.el7 RHSA-2025:4226
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-undertow 1.4.18-14.SP13_redhat_00001.1.ep7.el7 RHSA-2025:4226
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-wildfly +1 7.1.10-2.GA_redhat_00002.1.ep7.el7 RHSA-2025:4226
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-woodstox-core 5.0.3-2.redhat_00002.1.ep7.el7 RHSA-2025:4226
Red Hat Jboss Enterprise Application Platform Eus 7 eap7-xml-security 2.0.10-2.redhat_00002.1.ep7.el7 RHSA-2025:4226
Red Hat JBoss EAP 7 eap7-apache-cxf +3 3.3.12-1.redhat_00001.1.el6eap RHSA-2021:5151, RHSA-2021:5150, RHSA-2021:5149
Red Hat JBoss EAP 7 eap7-ironjacamar +8 1.5.3-1.Final_redhat_00001.1.el6eap RHSA-2021:5151, RHSA-2021:5150, RHSA-2021:5149
Red Hat JBoss EAP 7 eap7-jakarta-el 3.0.3-3.redhat_00007.1.el6eap RHSA-2021:5151, RHSA-2021:5150, RHSA-2021:5149
Red Hat JBoss EAP 7 eap7-jboss-ejb-client 4.0.43-1.Final_redhat_00001.1.el6eap RHSA-2021:5151, RHSA-2021:5150, RHSA-2021:5149
Red Hat JBoss EAP 7 eap7-jboss-server-migration +21 1.7.2-10.Final_redhat_00011.1.el6eap RHSA-2021:5151, RHSA-2021:5150, RHSA-2021:5149
Red Hat JBoss EAP 7 eap7-jsoup 1.14.2-1.redhat_00002.1.el6eap RHSA-2021:5151, RHSA-2021:5150, RHSA-2021:5149
Red Hat JBoss EAP 7 eap7-resteasy +19 3.11.5-1.Final_redhat_00001.1.el6eap RHSA-2021:5151, RHSA-2021:5150, RHSA-2021:5149
Red Hat JBoss EAP 7 eap7-undertow 2.0.41-1.SP1_redhat_00001.1.el6eap RHSA-2021:5151, RHSA-2021:5150, RHSA-2021:5149
Red Hat JBoss EAP 7 eap7-wildfly +2 7.3.10-2.GA_redhat_00003.1.el6eap RHSA-2021:5151, RHSA-2021:5150, RHSA-2021:5149
Red Hat JBoss EAP 7 eap7-wildfly-elytron +1 1.10.15-1.Final_redhat_00001.1.el6eap RHSA-2021:5151, RHSA-2021:5150, RHSA-2021:5149
Red Hat JBoss EAP 7 eap7-wildfly-java-jdk8 +1 7.3.10-2.GA_redhat_00003.1.el7eap RHSA-2021:5150
Red Hat JBoss EAP 7 eap7-wss4j +6 2.2.7-1.redhat_00001.1.el6eap RHSA-2021:5151, RHSA-2021:5150, RHSA-2021:5149
Red Hat JBoss EAP 7 eap7-xml-security 2.1.7-1.redhat_00001.1.el6eap RHSA-2021:5151, RHSA-2021:5150, RHSA-2021:5149
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed xml-security 2.1.7-1.1 openSUSE-SU-2024:11693-1

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.santuario:xmlsec >= 2.2.0, < 2.2.3 2.2.3 GHSA-j8wc-gxx9-82hx
Maven org.apache.santuario:xmlsec < 2.1.7 2.1.7 GHSA-j8wc-gxx9-82hx

Advisories 19

References