CVE-2019-12400: Apache Santuario XML Security DocumentBuilder Cache Class Loader Injection
- Vendors
- Red HatOracle CorporationApache Software Foundation
Apache Santuario XML Security for Java contains an unsafe DocumentBuilder caching mechanism introduced in version 2.0.3. The library uses a static pool of DocumentBuilder instances to improve XML-document creation performance. If untrusted code registers a malicious XML parser implementation through the thread context class loader before this pool is initialized, Santuario can cache that implementation and reuse it in later XML-security operations, including signed XML document validation. The issue affects Apache Santuario XML Security for Java 2.0.x from 2.0.3 onward and 2.1.x versions before 2.1.4.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
An attacker able to poison the cached DocumentBuilder implementation can cause subsequent XML parsing and signature-validation operations to use attacker-controlled parsing behavior. This can undermine integrity guarantees associated with signed XML validation and lead to security-sensitive validation flaws. The available assessment identifies high integrity impact; confidentiality loss and service-availability impact are not established.
Mitigation
If you can’t patch tonight, do this now.
Do not execute untrusted code in the same JVM or class-loader environment as Santuario XML Security operations. Restrict control of the thread context class loader and XML parser-provider registration to trusted application components. Where untrusted extensions are unavoidable, isolate them in separate processes or appropriately constrained class-loader boundaries and ensure Santuario initialization occurs only in a trusted runtime context. These measures reduce exposure but do not replace upgrading.
Remediation
Patch, then assume compromise.
Upgrade Apache Santuario XML Security for Java to version 2.1.4 or a vendor-supported package containing the fix. For affected Red Hat platforms, apply the applicable vendor security update, including the updates delivered for JBoss Enterprise Application Platform, Red Hat Single Sign-On, OpenShift Application Runtimes, or Red Hat Fuse. Restart affected Java application-server processes after updating where required.
Exploits
No validated public exploits yet. Hidden: 1 rejected by Mallory's analysis as not a working exploit.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2019-12400 exploited in the wild?
- As of Oct 16, 2026, Mallory has no reports of CVE-2019-12400 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2019-12400?
- As of Oct 16, 2026, Mallory has found no public exploit for CVE-2019-12400.
- Is there a patch for CVE-2019-12400?
- Upgrade Apache Santuario XML Security for Java to version 2.1.4 or a vendor-supported package containing the fix. For affected Red Hat platforms, apply the applicable vendor security update, including the updates delivered for JBoss Enterprise Application Platform, Red Hat Single Sign-On, OpenShift Application Runtimes, or Red Hat Fuse.
- What products are affected by CVE-2019-12400?
- Apache Software Foundation Santuario Xml Security For Java, Red Hat Jboss Enterprise Application Platform, and Oracle Corporation Oracle Weblogic Server.
- How severe is CVE-2019-12400?
- CVE-2019-12400 has a CVSS v3.1 score of 5.5 (Medium) and an EPSS score of 0.78% (57th percentile) as of Oct 16, 2026.
Recent activity
8 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.