Description
The Spring OXM wrapper in Spring Framework before 3.2.4 and 4.0.0.M1, when using the JAXB marshaller, does not disable entity resolution, which allows context-dependent attackers to read arbitrary files, cause a denial of service, and conduct CSRF attacks via an XML external entity declaration in conjunction with an entity reference in a (1) DOMSource, (2) StAXSource, (3) SAXSource, or (4) StreamSource, aka an XML External Entity (XXE) issue.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libspring-java | 3.0.6.RELEASE-10 | — |
| Debian 13 | libspring-java | 3.0.6.RELEASE-10 | — |
| Debian 12 | libspring-java | 3.0.6.RELEASE-10 | — |
| Debian 7 | libspring-java | 3.0.6.RELEASE-6+deb7u1 | DSA-2842-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat OpenShift 2 | activemq +1 | 5.9.0-4.redhat.610328.el6op | RHSA-2014:0245 |
| Red Hat OpenShift 1 | activemq +1 | 5.9.0-4.redhat.610328.el6op | RHSA-2014:0254 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.springframework:spring-oxm | < 3.2.4.RELEASE | 3.2.4.RELEASE | GHSA-rp4p-g69r-438x |
Advisories 3
- RHSA-2014:0254 Red Hat Security Advisory: activemq security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- RHSA-2014:0245 Red Hat Security Advisory: activemq security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- DSA-2842-1 libspring-java - several Debian Security (DSA / DLA) · Mar 9, 2026
References
- https://github.com/spring-projects/spring-framework/pull/317/files
- http://www.gopivotal.com/security/cve-2013-4152
- 61951 vdb-entry
- 20131102 XXE Injection in Spring Framework mailing-list
- RHSA-2014:0254 vendor-advisory
- 20130822 CVE-2013-4152 XML External Entity (XXE) injection in Spring Framework mailing-list
- DSA-2842 vendor-advisory
- RHSA-2014:0212 vendor-advisory
- RHSA-2014:0400 vendor-advisory
- RHSA-2014:0245 vendor-advisory
- 57915 third-party-advisory
- https://jira.springsource.org/browse/SPR-10806
- 56247 third-party-advisory