CVE-2019-12400
Improper input validation in Apache Santuario XML Security for Java
Reported by apache · Published August 23, 2019
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.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| 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. |
| Apache | Apache Santuario - XML Security for Java | 2.0.x, 2.1.x |
| Maven | org.apache.santuario:xmlsec | 2.0.3, 2.1.0 |
Timeline
- Aug 23, 2019 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Aug 17, 2021 CVE Updated
- Jun 1, 2026 Security Advisory (5 in total, the first dated here)
- Sep 15, 2026 Coalition ESS Score
- Oct 31, 2026 Distribution Patch (4 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2019-12400
vulnetix vdb fixes CVE-2019-12400
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2019-12400/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- [santuario-dev] 20190905 Re: [CVE-2019-12400] Apache Santuario potentially loads XML parsing code from an untrusted source mailing-listx_refsource_MLIST
- [santuario-dev] 20190906 Re: [CVE-2019-12400] Apache Santuario potentially loads XML parsing code from an untrusted source mailing-listx_refsource_MLIST
- RHSA-2020:0806 vendor-advisoryx_refsource_REDHAT
- RHSA-2020:0811 vendor-advisoryx_refsource_REDHAT
- RHSA-2020:0804 vendor-advisoryx_refsource_REDHAT
- RHSA-2020:0805 vendor-advisoryx_refsource_REDHAT
- [tomee-commits] 20200324 [jira] [Created] (TOMEE-2791) TomEE plus(7.0.7) is affected by CVE-2019-12400 vulnerability mailing-listx_refsource_MLIST
- [tomee-commits] 20200720 [jira] [Created] (TOMEE-2885) Update Apache XML Security for Java to mitigate CVE-2019-12400 mailing-listx_refsource_MLIST
- [tomee-commits] 20200720 [jira] [Assigned] (TOMEE-2885) Update Apache XML Security for Java to mitigate CVE-2019-12400 mailing-listx_refsource_MLIST
- [tomee-commits] 20200720 [jira] [Commented] (TOMEE-2885) Update Apache XML Security for Java to mitigate CVE-2019-12400 mailing-listx_refsource_MLIST
- [santuario-commits] 20210917 svn commit: r1076843 - in /websites/production/santuario/content: cache/main.pageCache index.html javaindex.html secadv.data/CVE-2021-40690.txt.asc secadv.html mailing-listx_refsource_MLIST
- x_refsource_MISC
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- https://nvd.nist.gov/vuln/detail/CVE-2019-12400 advisory
- https://lists.apache.org/thread.html/8e814b925bf580bc527d96ff51e72ffe5bdeaa4b8bf5b89498cab24c@%3Cdev.santuario.apache.org%3E url
- https://lists.apache.org/thread.html/edaa7edb9c58e5f5bd0c950f2b6232b62b15f5c44ad803e8728308ce@%3Cdev.santuario.apache.org%3E url