cve.bz

CVE-2021-40690

7.5 highEPSS 7.4%Fix available

High (7.5). EPSS 7.4% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.santuario:xmlsec 2.1.7, 2.2.3.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
7.4% (unchanged from 7.4% a week ago; 7.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 95th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-10-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-40690 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-40690?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-40690?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-40690 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2021-40690

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2021-40690](https://cve.bz/cve/badge/CVE-2021-40690.svg)](https://cve.bz/cve/CVE-2021-40690)

HTML:

<a href="https://cve.bz/cve/CVE-2021-40690"><img src="https://cve.bz/cve/badge/CVE-2021-40690.svg" alt="CVE-2021-40690"></a>

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Apache Software Foundation Apache Santuariofrom XML Security for Java before 2.2.3,2.1.7

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-j8wc-gxx9-82hxMavenorg.apache.santuario:xmlsec>=2.2.0 <2.2.32.2.3
GHSA-j8wc-gxx9-82hxMavenorg.apache.santuario:xmlsec<2.1.72.1.7

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9libxml-security-java1.5.8-2+deb9u1DLA-2767-1
Debian10libxml-security-java2.0.10-2+deb10u1DSA-5010-1
Debian11libxml-security-java2.0.10-2+deb11u1DSA-5010-1
Debian12, 13, 14libxml-security-java2.1.7-1DEBIAN-CVE-2021-40690
Ubuntu16.04:LTSlibxml-security-javano fix listedUBUNTU-CVE-2021-40690
Ubuntu18.04:LTSlibxml-security-java2.0.10-2~18.04.1UBUNTU-CVE-2021-40690 USN-5525-1
Ubuntu20.04:LTSlibxml-security-java2.0.10-2+deb11u1build0.20.04.1UBUNTU-CVE-2021-40690 USN-5525-1
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-apache-cxf, eap7-apache-cxf-rt, eap7-apache-cxf-tools and 1 more0:3.3.12-1.redhat_00001.1.el6eapRHSA-2021:5149
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-ironjacamar, eap7-ironjacamar-jdbc, eap7-ironjacamar-core-api and 6 more0:1.5.3-1.Final_redhat_00001.1.el6eapRHSA-2021:5149
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-jakarta-el0:3.0.3-3.redhat_00007.1.el6eapRHSA-2021:5149
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-jboss-ejb-client0:4.0.43-1.Final_redhat_00001.1.el6eapRHSA-2021:5149
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-jboss-server-migration, eap7-jboss-server-migration-cli, eap7-jboss-server-migration-core and 19 more0:1.7.2-10.Final_redhat_00011.1.el6eapRHSA-2021:5149
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-jsoup0:1.14.2-1.redhat_00002.1.el6eapRHSA-2021:5149
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-resteasy, eap7-resteasy-cdi, eap7-resteasy-jaxrs and 17 more0:3.11.5-1.Final_redhat_00001.1.el6eapRHSA-2021:5149
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-undertow0:2.0.41-1.SP1_redhat_00001.1.el6eapRHSA-2021:5149
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-wildfly, eap7-wildfly-modules, eap7-wildfly-javadocs0:7.3.10-2.GA_redhat_00003.1.el6eapRHSA-2021:5149
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-wildfly-elytron, eap7-wildfly-elytron-tool0:1.10.15-1.Final_redhat_00001.1.el6eapRHSA-2021:5149
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-wss4j, eap7-wss4j-policy, eap7-wss4j-bindings and 4 more0:2.2.7-1.redhat_00001.1.el6eapRHSA-2021:5149
Red Hatjboss_enterprise_application_platform:7.3::el6eap7-xml-security0:2.1.7-1.redhat_00001.1.el6eapRHSA-2021:5149
34 more for Red Hat in the JSON and on Red Hat's page.
openSUSETumbleweedxml-security2.1.7-1.1openSUSE-SU-2024:11693-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Since OpenShift Container Platform (OCP) 4.7, the logging-elasticsearch6-container is shipping as a part of the OpenShift Logging product (openshift-logging/elasticsearch6-rhel8). The elasticsearch component delivered in OCP 4.6 is marked as `Out of support scope` because these versions are already under Maintenance Phase of the support.

ProductPackageStateAdvisory
EAP 7.3.10 GAxmlsecFixed 2021-12-15RHSA-2021:5154
Red Hat EAP-XP 2 via EAP 7.3.x basexmlsecFixed 2022-01-17RHSA-2022:0146
Red Hat Fuse 7.11xmlsecFixed 2022-07-07RHSA-2022:5532
Red Hat JBoss Enterprise Application Platformorg.apache.santuario/xmlsec:2.1.7.redhat-00001Fixed 2021-11-15RHSA-2021:4679
Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7eap7-activemq-artemis-0:1.5.5.016-1.redhat_00001.1.ep7.el7Fixed 2025-04-28RHSA-2025:4226
Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7eap7-artemis-native-1:1.5.5.016-1.redhat_00001.1.ep7.el7Fixed 2025-04-28RHSA-2025:4226
Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7eap7-jboss-xnio-base-0:3.5.11-1.Final_redhat_00001.1.ep7.el7Fixed 2025-04-28RHSA-2025:4226
Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7eap7-jsoup-0:1.14.2-1.redhat_00002.1.ep7.el7Fixed 2025-04-28RHSA-2025:4226
Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7eap7-undertow-0:1.4.18-14.SP13_redhat_00001.1.ep7.el7Fixed 2025-04-28RHSA-2025:4226
Red Hat JBoss Enterprise Application Platform 7.1 EUS for RHEL 7eap7-wildfly-0:7.1.10-2.GA_redhat_00002.1.ep7.el7Fixed 2025-04-28RHSA-2025:4226
Logging Subsystem for Red Hat OpenShiftopenshift-logging/elasticsearch6-rhel8Will not fix
Red Hat Ansible Automation Platform 1.2xmlsecNot affected
Red Hat Ansible Tower 3xmlsecNot affected
Red Hat Integration Camel Quarkus 1camel-quarkus-xmlsecurityAffected
Red Hat Integration Service RegistryxmlsecAffected
Red Hat JBoss Data Virtualization 6xmlsecOut of support scope
Red Hat JBoss Enterprise Application Platform Expansion PackxmlsecAffected
Red Hat JBoss Fuse 6xmlsecOut of support scope
Red Hat JBoss Fuse Service Works 6xmlsecOut of support scope
Red Hat JBoss Operations Network 3xmlsecOut of support scope
49 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-40690.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-200 (59).

References

Check your stackJSON