Apache XML Security For Java vulnerable to Infinite Loop
Affected versions of xmlsec are subject to a denial of service vulnerability. Should a user check the signature of a message larger than 512 MB, the method expandSize(int newPos) of class org.apache.xml.security.utils.UnsyncByteArrayOutputStream goes in an endless loop. A remote attacker could use this flaw to supply crafted XML that would lead to a denial of service.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | org.apache.santuario:xmlsec | >= 1.4.0, < 1.4.8, >= 1.5.0, < 1.5.3 | 1.4.8, 1.5.3 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2013-5823
- https://github.com/apache/santuario-java/commit/55a48497dfbf3fe63a81e67c13160b3f41ebb1f3
- https://github.com/apache/santuario-java/commit/cea3c91106fb8be35e2f1bb3f1fe0cfddd0ec710
- https://github.com/apache/santuario-java/commit/f9a61f2df9473237aa71308c28113540b4063d33
- https://access.redhat.com/errata/RHSA-2014:0414
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2013-5823
- https://issues.apache.org/jira/browse/SANTUARIO-334
- https://lists.opensuse.org/opensuse-updates/2013-11/msg00023.html
- https://marc.info/?l=bugtraq&m=138674031212883&w=2
- https://marc.info/?l=bugtraq&m=138674073720143&w=2
- https://security.gentoo.org/glsa/glsa-201406-32.xml
- Weakness (CWE)
-- Platform
- Java / Kotlin (Maven)
- Package
org.apache.santuario:xmlsec- Disclosed
- 14.05.2022
- Updated
- 11.10.2026 13:19
Sources and licenses
OSV / GitHub Advisory Database - GHSA-8gwc-x7mg-7p7p - CC BY 4.0
Vulnerability history: org.apache.santuario:xmlsec
All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 8
- First → latest
- 08.2019 10.2023
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- High 1
- Medium 7
Disclosures per year
- 2019: 1
- 2020: 0
- 2021: 1
- 2022: 5
- 2023: 1
- 2024: 0
- 2025: 0
- 2026: 0
-
Apache XML Security For Java vulnerable to Infinite Loop this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.