MODERATE 5.5

CVE-2019-12400

Improper input validation in Apache Santuario XML Security for Java

Description

In version 2.0.3 Apache Santuario XML Security for Java, a caching mechanism was introduced to speed up creating new XML documents using a static pool of DocumentBuilders. However, if some untrusted code can register a malicious implementation with the thread context class loader first, then this implementation might be cached and re-used by Apache Santuario - XML Security for Java, leading to potential security flaws when validating signed documents, etc. The vulnerability affects Apache Santuario - XML Security for Java 2.0.x releases from 2.0.3 and all 2.1.x releases before 2.1.4.

Affected Maven artifacts (1)

ArtifactAffected versionsFixed in
org.apache.santuario » xmlsec
>= 2.0.3, < 2.1.4
2.1.4

Blast radius

1affected artifacts
22affected versions
2,294dependent artifacts (est.)
104,327dependent versions

43% of the dependent artifacts (987) still pull an affected version in their latest release.

DepthDependent versions
Direct
1,948
2 hops
9,229
3 hops
27,897
4 hops
38,202
5 hops
17,912
6 hops
9,139

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.