NIST deprecates RSA-2048 from 2030. Find every one of them before attackers do.
☕ Maven
Not in CISA KEV

CVE-2013-5823 — xmlsec

Fix: apache/santuario-java@55a4849

CVE-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

Published
Updated
Affected
2 pkgs
Patched
2 / 2
Exploits
None indexed
Exploitation data as of Nov 9, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

EPSS Exploitation Probability

via FIRST.org ↗
4.7%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs92th percentile — riskier than 92% of all scored CVEsHighest risk
4.23%4.91%5.58%6.26%5.8%4.7%May 26Sep 26Nov 26

Probability of exploitation in the next 30 days, from FIRST.org EPSS.

Real-World Exposure

2 pkgs affected
☕org.apache.santuario:xmlsec☕org.apache.santuario:xmlsec

Real-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

2 total 2 fixed
EcosystemPackageVulnerable rangeFix
☕Mavenorg.apache.santuario:xmlsec≥ 1.4.0&&< 1.4.81.4.8org.apache.santuario:xmlsec:1.4.8
☕Mavenorg.apache.santuario:xmlsec≥ 1.5.0&&< 1.5.31.5.3org.apache.santuario:xmlsec:1.5.3

Affected Products

5 products · 138 configurations
Application
jdkoracle
≤ 1.7.0
2 versions
1.6.01.7.0
Application
jreoracle
≤ 1.6.0
2 versions
1.6.01.7.0
Application
jrockitoracle
≤ r28.2.8
18 versions
r27.7.1r27.7.2r27.7.3r27.7.4r27.7.5r28.0.0r28.0.1r28.0.2r28.1.0r28.1.1r28.1.3r28.1.4
Application
jdksun
1 version
1.6.0
Application
jresun
1 version
1.6.0

Detection & mitigation playbook

Open-source dependency
  1. Detect

    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.

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

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

Red HatModerate
ProductFixed inAdvisory
Oracle Java for Red Hat Enterprise Linux 5java-1.6.0-sun-1:1.6.0.75-1jpp.3.el5_10RHSA-2014:0414
Red Hat Enterprise Linux 5java-1.7.0-openjdk-1:1.7.0.45-2.4.3.1.el5_10RHSA-2013:1447
Red Hat Enterprise Linux 5java-1.6.0-openjdk-1:1.6.0.0-1.42.1.11.14.el5_10RHSA-2013:1505
Red Hat Enterprise Linux 6java-1.7.0-openjdk-1:1.7.0.45-2.4.3.2.el6_4RHSA-2013:1451
Red Hat Network Satellite Server v 5.4java-1.6.0-ibm-1:1.6.0.15.0-1jpp.1.el5RHSA-2013:1793
Supplementary for Red Hat Enterprise Linux 5java-1.7.0-oracle-1:1.7.0.45-1jpp.1.el5_10RHSA-2013:1440
Supplementary for Red Hat Enterprise Linux 5java-1.7.0-ibm-1:1.7.0.6.0-1jpp.1.el5_10RHSA-2013:1507
Supplementary for Red Hat Enterprise Linux 5java-1.6.0-ibm-1:1.6.0.15.0-1jpp.1.el5_10RHSA-2013:1508

Frequently Asked Questions

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.
O3 Security · Impact-Aware SCA

Is CVE-2013-5823 in your dependencies?

Find it across Maven, including transitive dependencies.

CVE-2013-5823: xmlsec DoS — Fixed in 1.4.8