CVE-2020-5397: CSRF Attack via CORS Preflight Requests with Spring MVC or Spring WebFlux
Spring Framework, versions 5.2.x prior to 5.2.3 are vulnerable to CSRF attacks through CORS preflight requests that target Spring MVC (spring-webmvc module) or Spring WebFlux (spring-webflux module) endpoints. Only non-authenticated endpoints are vulnerable because preflight requests should not include credentials and therefore requests should fail authentication. However a notable exception to this are Chrome based browsers when using client certificates for authentication since Chrome sends TLS client certificates in CORS preflight requests in violation of spec requirements. No HTTP body can be sent or received as a result of this attack.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
maven/org.springframework:spring-webfluxto a version that resolves this vulnerability.Fixed in 5.2.3 - Upgrade
Upgrade
maven/org.springframework:spring-webmvcto a version that resolves this vulnerability.Fixed in 5.2.3 - Upgrade
Upgrade
Spring Framework (spring-webmvc / spring-webflux)to a version that resolves this vulnerability.Fixed in 5.2.3
Event History
Frequently Asked Questions
What is the severity of CVE-2020-5397?
The severity of CVE-2020-5397 is medium with a severity value of 5.3.
Which software versions are affected by CVE-2020-5397?
Spring Framework versions 5.2.x prior to 5.2.3, VMware Spring Framework, and Oracle Application Testing Suite are affected by CVE-2020-5397.
How does CVE-2020-5397 impact Spring Framework?
CVE-2020-5397 allows CSRF attacks through CORS preflight requests targeting Spring MVC or Spring WebFlux endpoints.
What are the reference links for CVE-2020-5397?
The reference links for CVE-2020-5397 are: [Link 1](https://pivotal.io/security/cve-2020-5397), [Link 2](https://www.oracle.com//security-alerts/cpujul2021.html), [Link 3](https://www.oracle.com/security-alerts/cpuapr2020.html).
What is the Common Weakness Enumeration (CWE) for CVE-2020-5397?
The Common Weakness Enumeration (CWE) for CVE-2020-5397 is CWE-352.