Skip to content
Fencer Vulns
high 7.5

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-rhel8
    affected: no fix planned “Will not fix”
  • Red Hat Integration Camel Quarkus 1 camel-quarkus-xmlsecurity camel-quarkus-xmlsecurity Red Hat Integration Service Registry xmlsec
    affected: no fix available
  • Red Hat JBoss Data Virtualization 6 xmlsec
    affected: no fix planned “Out of support scope”
  • Red Hat JBoss Enterprise Application Platform Expansion Pack xmlsec
    affected: 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-elasticsearch6
    affected: no fix planned “Out of support scope”
  • Red Hat EAP 7.3.10 GA
    fixed: vendor fix RHSA-2021:5154
  • Red Hat Middleware Containers for OpenShift rh-sso-7/sso75-openshift-rhel8 7.5-15
    fixed: vendor fix RHSA-2022:0164
  • Red Hat EAP-XP 2 via EAP 7.3.x base
    fixed: vendor fix RHSA-2022:0146
show 14 more
  • Red Hat Fuse 7.11
    fixed: 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 more
    fixed: 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 more
    fixed: 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 more
    fixed: vendor fix RHSA-2021:5150
  • Red Hat JBoss Enterprise Application Platform xmlsec 2.1.7.redhat-00001
    fixed: 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 more
    fixed: vendor fix RHSA-2025:4226
  • Red Hat Single Sign-On 7.4.10
    fixed: 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.el7sso
    fixed: 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.el8sso
    fixed: vendor fix RHSA-2022:0152
  • Red Hat RHAF Camel-K 1.8
    fixed: vendor fix RHSA-2022:6407
  • Red Hat RHINT Camel-Q 2.2.1
    fixed: vendor fix RHSA-2022:1013
  • Red Hat RHINT Service Registry 2.0.3 GA
    fixed: vendor fix RHSA-2022:0501
  • Red Hat RHSSO 7.5.1
    fixed: 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 more
    not 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

Sources

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.