CVE-2013-4152: CSRF

Published Aug 22, 2013
·
Updated

It was reported [1] that the Spring Framework suffered from several XML External Entity (XXE) flaws:

Versions Affected: - 3.0.0 to 3.2.3 (Spring OXM) - 3.2.0 to 3.2.3 (Spring MVC) - 4.0.0.M1 (Spring OXM) - 4.0.0.M1-4.0.0.M2 (Spring MVC) - Earlier unsupported versions may also be affected

Description: The Spring OXM wrapper did not expose any property for disabling entity resolution when using the JAXB unmarshaller. There are four possible source implementations passed to the unmarshaller: - DOMSource - StAXSource - SAXSource - StreamSource For a DOMSource, the XML has already been parsed by user code and that code is responsible for protecting against XXE. For a StAXSource, the XMLStreamReader has already been created by user code and that code is responsible for protecting against XXE. For SAXSource and StreamSource instances, Spring processed external entities by default thereby creating this vulnerability. The issue was resolved by disabling external entity processing by default and adding an option to enable it for those users that need to use this feature when processing XML from a trusted source.

It was also identified that Spring MVC processed user provided XML with JAXB in combination with a StAX XMLInputFactory without disabling external entity resolution. External entity resolution has been disabled in this case.

Mitigation: Users of affected versions should apply the following mitigation: - Users of 3.x should upgrade to 3.2.4 or later - Users of 4.x should upgrade to 4.0.0.RC1 or later once released Note the Spring OXM issue is fixed in 4.0.0.M2

[1] http://seclists.org/bugtraq/2013/Aug/154

External References:

http://www.gopivotal.com/security/cve-2013-4152 https://github.com/SpringSource/spring-framework/pull/317 https://jira.springsource.org/browse/SPR-10806

Other sources

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.

Affected Software

32 affected componentsFixes available
redhat/activemq<0:5.9.0-4.redhat.610328.el6
0:5.9.0-4.redhat.610328.el6
redhat/Spring Framework<3.2.4
3.2.4
maven/org.springframework:spring-oxm<=3.2.3.RELEASE
3.2.4.RELEASE
SpringSource Spring Framework=3.0.0
SpringSource Spring Framework=3.0.0-m1
SpringSource Spring Framework=3.0.0-m2
SpringSource Spring Framework=3.0.0-m3
SpringSource Spring Framework=3.0.0-m4
SpringSource Spring Framework=3.0.0-rc1
SpringSource Spring Framework=3.0.0-rc2
SpringSource Spring Framework=3.0.0-rc3
SpringSource Spring Framework=3.0.0.m1
SpringSource Spring Framework=3.0.0.m2
SpringSource Spring Framework=3.0.1
SpringSource Spring Framework=3.0.2
SpringSource Spring Framework=3.0.3
SpringSource Spring Framework=3.0.4
SpringSource Spring Framework=3.0.5
VMware Spring Framework<=3.2.3
VMware Spring Framework=3.0.6
VMware Spring Framework=3.0.7
VMware Spring Framework=3.1.0
VMware Spring Framework=3.1.1
VMware Spring Framework=3.1.2
VMware Spring Framework=3.1.3
VMware Spring Framework=3.1.4
VMware Spring Framework=3.2.0
VMware Spring Framework=3.2.1
VMware Spring Framework=3.2.2
VMware Spring Framework=4.0.0-milestone1
IBM Engineering Requirements Management DOORS and DOORS Web Access<=9.7.2.1 - 9.7.2.11
IBM Engineering Requirements Management DOORS and DOORS Web Access<=9.6.1.1 - 9.6.1.13

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/activemq to a version that resolves this vulnerability.

    Fixed in 0:5.9.0-4.redhat.610328.el6
  2. Upgrade

    Upgrade redhat/Spring Framework to a version that resolves this vulnerability.

    Fixed in 3.2.4
  3. Upgrade

    Upgrade maven/org.springframework:spring-oxm to a version that resolves this vulnerability.

    Fixed in 3.2.4.RELEASE
  4. Upgrade

    Upgrade Spring OXM to a version that resolves this vulnerability.

    Fixed in 3.2.4
  5. Upgrade

    Upgrade Spring MVC to a version that resolves this vulnerability.

    Fixed in 3.2.4
  6. Upgrade

    Upgrade Spring OXM to a version that resolves this vulnerability.

    Fixed in 4.0.0.M2
  7. Upgrade

    Upgrade Spring MVC to a version that resolves this vulnerability.

    Fixed in 4.0.0.RC1

Event History

Aug 22, 2013
CVE Published
12:00 AM
Jan 23, 2014
CVE Published
via MITRE·09:00 PM
Data Sourced
via MITRE·09:00 PM
Description
May 13, 2022
Advisory Published
via GitHub·01:02 AM
Jul 6, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2013-4152?

CVE-2013-4152 is a vulnerability in the Pivotal Spring Framework that allows a remote attacker to obtain sensitive information and conduct CSRF attacks.

2

What is the severity of CVE-2013-4152?

The severity of CVE-2013-4152 is medium, with a CVSS score of 6.8.

3

How does CVE-2013-4152 work?

CVE-2013-4152 works by exploiting the Spring OXM wrapper in Spring Framework before version 3.2.4 and 4.0.0.M1, when using the JAXB marshaller, which does not disable entity resolution.

4

How can I fix CVE-2013-4152?

To fix CVE-2013-4152, update to Spring Framework version 3.2.4 or later.

5

Where can I find more information about CVE-2013-4152?

You can find more information about CVE-2013-4152 on the CVE website, NVD website, Pivotal's security advisory, and the GitHub and JIRA pages associated with the vulnerability.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203