# CVE-2019-12400: Improper input validation in Apache Santuario XML Security for Java

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.78%, higher than 56% of CVEs (2026-12-01)
- Published: 2019-08-23T20:30:33.000Z
- Modified: 2026-06-17T02:14:34.460Z
- Also known as: GHSA-4q98-wr72-h35w
- Weaknesses: CWE-20
- Assigned by: apache

## 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.

(As written by CVE List.)

## Affected

- Apache Apache Santuario - XML Security for Java: All 2.0.x releases from 2.0.3; all 2.1.x releases before 2.1.4.
- org.apache.santuario:xmlsec (Maven): from 2.0.3 before 2.1.4
- apache santuario_xml_security_for_java: from 2.0.3 up to 2.0.10; from 2.1.0 before 2.1.4
- redhat jboss_enterprise_application_platform: 7.2
- oracle weblogic_server: 12.2.1.4.0; 14.1.1.0.0

## Every score

- GitHub: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:2.0 1.9 Low `AV:L/AC:M/Au:N/C:N/I:P/A:N`

## References

- <https://lists.apache.org/thread.html/8e814b925bf580bc527d96ff51e72ffe5bdeaa4b8bf5b89498cab24c%40%3Cdev.santuario.apache.org%3E> (mailing-list)
- <https://lists.apache.org/thread.html/edaa7edb9c58e5f5bd0c950f2b6232b62b15f5c44ad803e8728308ce%40%3Cdev.santuario.apache.org%3E> (mailing-list)
- <https://access.redhat.com/errata/RHSA-2020:0806> (third-party-advisory, vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2020:0811> (third-party-advisory, vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2020:0804> (third-party-advisory, vendor-advisory, web)
- <https://access.redhat.com/errata/RHSA-2020:0805> (third-party-advisory, vendor-advisory, web)
- <https://lists.apache.org/thread.html/rcdc0da94fe21b26493eae47ca987a290bdf90c721a7a42491fdd41d4%40%3Ccommits.tomee.apache.org%3E> (mailing-list)
- <https://lists.apache.org/thread.html/rf82be0a7c98cd3545e20817bb96ed05551ea0020acbaf9a469fef402%40%3Ccommits.tomee.apache.org%3E> (mailing-list)
- <https://lists.apache.org/thread.html/r107bffb06a5e27457fe9af7dfe3a233d0d36c6c2f5122f117eb7f626%40%3Ccommits.tomee.apache.org%3E> (mailing-list)
- <https://lists.apache.org/thread.html/rf958cea96236de8829940109ae07e870aa3d59235345421e4924ff03%40%3Ccommits.tomee.apache.org%3E> (mailing-list)
- <https://lists.apache.org/thread.html/r1c07a561426ec5579073046ad7f4207cdcef452bb3100abaf908e0cd%40%3Ccommits.santuario.apache.org%3E> (mailing-list)
- <https://www.oracle.com/security-alerts/cpuoct2021.html> (patch, third-party-advisory, web)
- <http://santuario.apache.org/secadv.data/CVE-2019-12400.asc?version=1&modificationDate=1566573083000&api=v2> (vendor-advisory, web)
- <https://security.netapp.com/advisory/ntap-20190910-0003/> (third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2019-12400> (advisory)
- <https://lists.apache.org/thread.html/8e814b925bf580bc527d96ff51e72ffe5bdeaa4b8bf5b89498cab24c@%3Cdev.santuario.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/edaa7edb9c58e5f5bd0c950f2b6232b62b15f5c44ad803e8728308ce@%3Cdev.santuario.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/r107bffb06a5e27457fe9af7dfe3a233d0d36c6c2f5122f117eb7f626@%3Ccommits.tomee.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/r1c07a561426ec5579073046ad7f4207cdcef452bb3100abaf908e0cd@%3Ccommits.santuario.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/rcdc0da94fe21b26493eae47ca987a290bdf90c721a7a42491fdd41d4@%3Ccommits.tomee.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/rf82be0a7c98cd3545e20817bb96ed05551ea0020acbaf9a469fef402@%3Ccommits.tomee.apache.org%3E> (web)
- <https://lists.apache.org/thread.html/rf958cea96236de8829940109ae07e870aa3d59235345421e4924ff03@%3Ccommits.tomee.apache.org%3E> (web)
- <https://security.netapp.com/advisory/ntap-20190910-0003> (web)

## Sources

- CVE List: [CVE-2019-12400](https://www.cve.org/CVERecord?id=CVE-2019-12400), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-4q98-wr72-h35w](https://github.com/advisories/GHSA-4q98-wr72-h35w), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2019-12400](https://nvd.nist.gov/vuln/detail/CVE-2019-12400), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2019-12400 · Whole record: https://cve.day/CVE-2019-12400.json · Rebuilt by cve.day 2026-11-25T22:57:46.687Z
