# Apache XML Security For Java vulnerable to Infinite Loop

Advisory record · `GHSA-8gwc-x7mg-7p7p`

- **Identifiers:** `GHSA-8gwc-x7mg-7p7p` · `CVE-2013-5823`
- **State:** Confirmed
- **Severity:** No CVSS score
- **Critical:** No
- **Published:** 14 May 2022
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 14 May 2022, 00:02 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `org.apache.santuario:xmlsec` (Maven): affected `>=1.4.0, <1.4.8 || >=1.5.0, <1.5.3`; fixed in `1.4.8`, `1.5.3`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Apache XML Security for Java (xmlsec) versions 1.4.0 to before 1.4.8 and 1.5.0 to before 1.5.3 are affected. When a signature is checked on a message larger than 512 MB, the expandSize method in UnsyncByteArrayOutputStream can loop endlessly, so a remote attacker who supplies crafted XML can cause a denial of service. Upgrade to 1.4.8 or 1.5.3.

Written 2 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

No source has published a CVSS score for this record yet.

- **CISA KEV:** Not listed.
- **EPSS:** 0.047, the 92nd percentile, on 17 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:18 UTC: First seen by agentprime
- 31 Oct 2026, 14:18 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-8gwc-x7mg-7p7p)

## Sources

- [GitHub Advisory Database: GHSA-8gwc-x7mg-7p7p](https://github.com/advisories/GHSA-8gwc-x7mg-7p7p)
- [OSV: GHSA-8gwc-x7mg-7p7p](https://osv.dev/vulnerability/GHSA-8gwc-x7mg-7p7p)
- <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>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-8gwc-x7mg-7p7p>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-8gwc-x7mg-7p7p/>. Everything for agents: <https://agentprime.io/llms.txt>.
