CVE-2013-5823 — xmlsec
Fix: apache/santuario-java@55a4849CVE-2013-5823 is a security vulnerability in org.apache.santuario:xmlsec. A fix is available for org.apache.santuario:xmlsec — see the affected versions and patch details below.
Apache XML Security For Java vulnerable to Infinite Loop
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
Real-World Exposure
org.apache.santuario:xmlsec☕org.apache.santuario:xmlsecReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
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 Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.apache.santuario:xmlsec | ≥ 1.4.0&&< 1.4.8 | 1.4.8org.apache.santuario:xmlsec:1.4.8 |
| ☕Maven | org.apache.santuario:xmlsec | ≥ 1.5.0&&< 1.5.3 | 1.5.3org.apache.santuario:xmlsec:1.5.3 |
Affected Products
jdkoraclejreoraclejrockitoraclejdksunjresunDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.apache.santuario:xmlsec, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.apache.santuario:xmlsec to 1.4.8 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms CVE-2013-5823 is resolved across your whole dependency graph.
Workarounds
Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
| Product | Fixed in | Advisory |
|---|---|---|
| Oracle Java for Red Hat Enterprise Linux 5 | java-1.6.0-sun-1:1.6.0.75-1jpp.3.el5_10 | RHSA-2014:0414 |
| Red Hat Enterprise Linux 5 | java-1.7.0-openjdk-1:1.7.0.45-2.4.3.1.el5_10 | RHSA-2013:1447 |
| Red Hat Enterprise Linux 5 | java-1.6.0-openjdk-1:1.6.0.0-1.42.1.11.14.el5_10 | RHSA-2013:1505 |
| Red Hat Enterprise Linux 6 | java-1.7.0-openjdk-1:1.7.0.45-2.4.3.2.el6_4 | RHSA-2013:1451 |
| Red Hat Network Satellite Server v 5.4 | java-1.6.0-ibm-1:1.6.0.15.0-1jpp.1.el5 | RHSA-2013:1793 |
| Supplementary for Red Hat Enterprise Linux 5 | java-1.7.0-oracle-1:1.7.0.45-1jpp.1.el5_10 | RHSA-2013:1440 |
| Supplementary for Red Hat Enterprise Linux 5 | java-1.7.0-ibm-1:1.7.0.6.0-1jpp.1.el5_10 | RHSA-2013:1507 |
| Supplementary for Red Hat Enterprise Linux 5 | java-1.6.0-ibm-1:1.6.0.15.0-1jpp.1.el5_10 | RHSA-2013:1508 |
Frequently Asked Questions
Is CVE-2013-5823 in your dependencies?
Find it across Maven, including transitive dependencies.