CVE-2021-40690 json
Bypass of the secureValidation property
published 2021-09-19 5 y ago modified 2026-10-08 31 d ago also GHSA-j8wc-gxx9-82hx , EUVD-2021-2083
- cvss
- 7.5
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 7.4%
- EPSS 7.4% chance of exploitation in 30 days, percentile 94%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- maven org.apache.santuario:xmlsec 2.1.7, 2.2.3
- Apache Software Foundation Apache Santuario 2.2.3,2.1.7
- libxml-security-java Debian 14, Debian 13, Debian 12 2.1.7-1
debian advisories DEBIAN-CVE-2021-40690
- libxml-security-java Ubuntu 18.04 LTS 2.0.10-2~18.04.1
- libxml-security-java Ubuntu 20.04 LTS 2.0.10-2+deb11u1build0.20.04.1
ubuntu advisories UBUNTU-CVE-2021-40690
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- eap7-jsoup jboss enterprise application platform 7.3 1.14.2-1.redhat_00002.1.el8eap
- eap7-wss4j jboss enterprise application platform 7.3 2.2.7-1.redhat_00001.1.el8eap
- eap7-wildfly jboss enterprise application platform 7.3 7.3.10-2.GA_redhat_00003.1.el8eap
- eap7-resteasy jboss enterprise application platform 7.3 3.11.5-1.Final_redhat_00001.1.el8eap
- eap7-undertow jboss enterprise application platform 7.3 2.0.41-1.SP1_redhat_00001.1.el8eap
- eap7-apache-cxf jboss enterprise application platform 7.3 3.3.12-1.redhat_00001.1.el8eap
- eap7-jakarta-el jboss enterprise application platform 7.3 3.0.3-3.redhat_00007.1.el8eap
- eap7-ironjacamar jboss enterprise application platform 7.3 1.5.3-1.Final_redhat_00001.1.el8eap
red hat advisories RHSA-2025:4226RHSA-2021:5151RHSA-2021:5150RHSA-2021:5149RHSA-2022:0151RHSA-2022:0152
- xml-security openSUSE Tumbleweed 2.1.7-1.1
opensuse advisories openSUSE-SU-2024:11693-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-40690 updated cvss 7.5
xml-security: XPath Transform abuse allows for information disclosure
-
Red Hat Logging Subsystem for Red Hat OpenShift openshift-logging/elasticsearch6-rhel8affected: no fix planned “Will not fix”
-
Red Hat Integration Camel Quarkus 1 camel-quarkus-xmlsecurity camel-quarkus-xmlsecurity Red Hat Integration Service Registry xmlsecaffected: no fix available
-
Red Hat JBoss Data Virtualization 6 xmlsecaffected: no fix planned “Out of support scope”
-
Red Hat JBoss Enterprise Application Platform Expansion Pack xmlsecaffected: no fix available
-
Red Hat JBoss Fuse 6 xmlsec Red Hat JBoss Fuse Service Works 6 xmlsec Red Hat JBoss Operations Network 3 xmlsec Red Hat JBoss SOA Platform 5 xml-security xml-security Red Hat OpenShift Container Platform 3.11 openshift3/ose-logging-elasticsearch5 Red Hat OpenShift Container Platform 4 openshift4/ose-logging-elasticsearch6affected: no fix planned “Out of support scope”
-
Red Hat EAP 7.3.10 GAfixed: vendor fix RHSA-2021:5154
-
Red Hat Middleware Containers for OpenShift rh-sso-7/sso75-openshift-rhel8 7.5-15fixed: vendor fix RHSA-2022:0164
-
Red Hat EAP-XP 2 via EAP 7.3.x basefixed: vendor fix RHSA-2022:0146
show 14 moreshow fewer
-
Red Hat Fuse 7.11fixed: vendor fix RHSA-2022:5532
-
Red Hat JBoss EAP 7.3 for BaseOS-8 eap7-wss4j 2.2.7-1.redhat_00001.1.el8eap, eap7-jsoup 1.14.2-1.redhat_00002.1.el8eap, eap7-jakarta-el 3.0.3-3.redhat_00007.1.el8eap, eap7-apache-cxf 3.3.12-1.redhat_00001.1.el8eap, eap7-wildfly 7.3.10-2.GA_redhat_00003.1.el8eap, eap7-wss4j-policy 2.2.7-1.redhat_00001.1.el8eap, +66 morefixed: vendor fix RHSA-2021:5151
-
Red Hat JBoss EAP 7.3 for RHEL 6 Server eap7-wss4j 2.2.7-1.redhat_00001.1.el6eap, eap7-jsoup 1.14.2-1.redhat_00002.1.el6eap, eap7-jakarta-el 3.0.3-3.redhat_00007.1.el6eap, eap7-apache-cxf 3.3.12-1.redhat_00001.1.el6eap, eap7-wildfly 7.3.10-2.GA_redhat_00003.1.el6eap, eap7-wss4j-policy 2.2.7-1.redhat_00001.1.el6eap, +66 morefixed: vendor fix RHSA-2021:5149
-
Red Hat JBoss EAP 7.3 for RHEL 7 Server eap7-wss4j 2.2.7-1.redhat_00001.1.el7eap, eap7-jsoup 1.14.2-1.redhat_00002.1.el7eap, eap7-jakarta-el 3.0.3-3.redhat_00007.1.el7eap, eap7-apache-cxf 3.3.12-1.redhat_00001.1.el7eap, eap7-wildfly 7.3.10-2.GA_redhat_00003.1.el7eap, eap7-wss4j-policy 2.2.7-1.redhat_00001.1.el7eap, +68 morefixed: vendor fix RHSA-2021:5150
-
Red Hat JBoss Enterprise Application Platform xmlsec 2.1.7.redhat-00001fixed: vendor fix RHSA-2021:4679
-
Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7 Server eap7-jsoup 1.14.2-1.redhat_00002.1.ep7.el7, eap7-wildfly 7.1.10-2.GA_redhat_00002.1.ep7.el7, eap7-woodstox-core 5.0.3-2.redhat_00002.1.ep7.el7, eap7-xml-security 2.0.10-2.redhat_00002.1.ep7.el7, eap7-undertow 1.4.18-14.SP13_redhat_00001.1.ep7.el7, eap7-artemis-native 1.5.5.016-1.redhat_00001.1.ep7.el7, +19 morefixed: vendor fix RHSA-2025:4226
-
Red Hat Single Sign-On 7.4.10fixed: vendor fix RHSA-2021:5170
-
Red Hat Single Sign-On 7.5 for RHEL 7 Server rh-sso7-keycloak 15.0.4-1.redhat_00001.1.el7sso, rh-sso7-keycloak-server 15.0.4-1.redhat_00001.1.el7ssofixed: vendor fix RHSA-2022:0151
-
Red Hat Single Sign-On 7.5 for RHEL 8 rh-sso7-keycloak 15.0.4-1.redhat_00001.1.el8sso, rh-sso7-keycloak-server 15.0.4-1.redhat_00001.1.el8ssofixed: vendor fix RHSA-2022:0152
-
Red Hat RHAF Camel-K 1.8fixed: vendor fix RHSA-2022:6407
-
Red Hat RHINT Camel-Q 2.2.1fixed: vendor fix RHSA-2022:1013
-
Red Hat RHINT Service Registry 2.0.3 GAfixed: vendor fix RHSA-2022:0501
-
Red Hat RHSSO 7.5.1fixed: vendor fix RHSA-2022:0155
-
Red Hat Ansible Automation Platform 1.2 xmlsec Red Hat Ansible Tower 3 xmlsec Red Hat JBoss Enterprise Application Platform pom.xml, c3 0.6.0, c3 0.7.1, d3 5.9.2, ms 2.0.0, ms 2.1.2, +1445 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 31 d ago
Exploit prediction
7.44% chance of exploitation in the next 30 days, higher than 94% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.apache.santuario:xmlsec | >=2.2.0, <2.2.3 <2.1.7 |
2.2.3 2.1.7 |
Affected products
- Apache Software Foundation Apache Santuario
Classification
- Weakness
-
- CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
References
-
lists.apache.org
/thread.html/r8848751b6a5dd78cc9e99d627e74fecfaffdfa1bb615dce827aad633%40%3Cdev.santuario.apache.org%3E
web, issue-tracking, mailing-list, patch, third-party-advisory
-
oracle.com
/security-alerts/cpuapr2022.html
web, patch, third-party-advisory
-
oracle.com
/security-alerts/cpujul2022.html
web, patch, third-party-advisory
-
debian.org
/security/2021/dsa-5010
vendor-advisory, web, third-party-advisory
-
lists.apache.org
/thread.html/rbdac116aef912b563da54f4c152222c0754e32fb2f785519ac5e059f%40%3Ccommits.tomee.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/re294cfc61f509512874ea514d8d64fd276253d54ac378ffa7a4880c8%40%3Ccommits.tomee.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r8a5c0ce9014bd07303aec1e5eed55951704878016465d3dae00e0c28%40%3Ccommits.tomee.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r9c100d53c84d54cf71975e3f0cfcc2856a8846554a04c99390156ce4%40%3Ccommits.tomee.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/r3b3f5ba9b0de8c9c125077b71af06026d344a709a8ba67db81ee9faa%40%3Ccommits.tomee.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/raf352f95c19c0c4051af3180752cb69acbea88d0d066ab176c6170e8%40%3Cuser.poi.apache.org%3E
mailing-list
-
lists.debian.org
/debian-lts-announce/2021/09/msg00015.html
mailing-list, web, third-party-advisory
-
lists.apache.org
/thread.html/r401ecb7274794f040cd757b259ebe3e8c463ae74f7961209ccad3c59%40%3Cissues.cxf.apache.org%3E
mailing-list
-
lists.apache.org
/thread.html/rbbbac0759b12472abd0c278d32b5e0867bb21934df8e14e5e641597c%40%3Ccommits.tomee.apache.org%3E
mailing-list
- security.netapp.com /advisory/ntap-20230818-0002/
-
nvd.nist.gov
/vuln/detail/CVE-2021-40690
advisory
-
lists.apache.org
/thread.html/r3b3f5ba9b0de8c9c125077b71af06026d344a709a8ba67db81ee9faa@%3Ccommits.tomee.apache.org%3E
web
-
lists.apache.org
/thread.html/r401ecb7274794f040cd757b259ebe3e8c463ae74f7961209ccad3c59@%3Cissues.cxf.apache.org%3E
web
-
lists.apache.org
/thread.html/r8a5c0ce9014bd07303aec1e5eed55951704878016465d3dae00e0c28@%3Ccommits.tomee.apache.org%3E
web
-
lists.apache.org
/thread.html/r9c100d53c84d54cf71975e3f0cfcc2856a8846554a04c99390156ce4@%3Ccommits.tomee.apache.org%3E
web
-
lists.apache.org
/thread.html/raf352f95c19c0c4051af3180752cb69acbea88d0d066ab176c6170e8@%3Cuser.poi.apache.org%3E
web
-
lists.apache.org
/thread.html/rbbbac0759b12472abd0c278d32b5e0867bb21934df8e14e5e641597c@%3Ccommits.tomee.apache.org%3E
web
-
lists.apache.org
/thread.html/rbdac116aef912b563da54f4c152222c0754e32fb2f785519ac5e059f@%3Ccommits.tomee.apache.org%3E
web
-
lists.apache.org
/thread.html/re294cfc61f509512874ea514d8d64fd276253d54ac378ffa7a4880c8@%3Ccommits.tomee.apache.org%3E
web
-
security.netapp.com
/advisory/ntap-20230818-0002
web
Sources
- CVE List CVE-2021-40690
- GitHub Advisory GHSA-j8wc-gxx9-82hx
- NVD CVE-2021-40690
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.