Cross-Site Request Forgery in Spring Framework
Date: 2022-05
Affected: maven/org.springframework:spring-oxm
Attack vector: dos
Category: vulnerability-disclosure
Severity: Medium
CVE: CVE-2013-4152
CWE: CWE-352

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.


Mitigations:

Architectural layers (MAESTRO):