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
EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.
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 |
Detection & 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
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
How O3 protects you
O3 Security's impact-aware SCA analyses which vulnerable code paths your application actually calls, so a match like CVE-2013-5823 can be triaged on real exposure rather than presence alone.
Tailored to CVE-2013-5823. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
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?
O3 Security finds CVE-2013-5823 across Maven dependencies, including transitive ones, and its impact-aware SCA ranks findings by whether your code actually calls the vulnerable path.