CVE-2020-5397 json
CSRF Attack via CORS Preflight Requests with Spring MVC or Spring WebFlux
published 2020-01-17 6 y ago modified 2026-06-17 4 mo ago also GHSA-7pm4-g2qj-j85x , EUVD-2020-0253
- cvss
- 5.3
- version 3.0, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.6%
- EPSS 2.6% chance of exploitation in 30 days, percentile 85%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- maven org.springframework:spring-webmvc 5.2.3
- maven org.springframework:spring-webflux 5.2.3
- Spring Spring Framework v5.2.3.RELEASE
- github.com/spring-projects/spring-framework@bc7d010 commit
- oracle.com/security-alerts/cpuapr2020.html advisory
- oracle.com/security-alerts/cpujul2020.html advisory
- oracle.com/security-alerts/cpuoct2020.html advisory
- oracle.com//security-alerts/cpujul2021.html advisory
- oracle.com/security-alerts/cpuoct2021.html advisory
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2020-5397 updated cvss 5.3
springframework: CSRF attack via CORS Preflight Requests with Spring MVC or Spring WebFlux
-
Red Hat JBoss BRMS 5 springframework springframework Red Hat JBoss Data Virtualization 6 springframework springframework Red Hat JBoss Fuse 6 springframework springframework Red Hat JBoss Fuse Service Works 6 springframework springframework Red Hat JBoss SOA Platform 5 springframework springframeworkaffected: no fix planned “Out of support scope”
-
Red Hat Fuse 7 springframework springframework Red Hat Storage 3 rhevm-dependencies Red Hat Virtualization 4 rhvm-dependenciesnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.55% chance of exploitation in the next 30 days, higher than 85% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- pivotal.io https://pivotal.io/security/cve-2020-5397 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.0 | 5.3 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | 3.1 | 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
| NVD | 2.0 | 2.6 | AV:N/AC:H/Au:N/C:N/I:P/A:N |
| GitHub | 3.0 | 5.3 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.springframework:spring-webmvc | >=5.2.0, <5.2.3 |
5.2.3 |
| maven | org.springframework:spring-webflux | >=5.2.0, <5.2.3 |
5.2.3 |
Affected products
- Spring Spring Framework
Classification
- Weakness
-
- CWE-352 Cross-Site Request Forgery
- Technology feeds
References
-
oracle.com
/security-alerts/cpuapr2020.html
web, patch, third-party-advisory
-
oracle.com
/security-alerts/cpujul2020.html
web, patch, third-party-advisory
-
oracle.com
/security-alerts/cpuoct2020.html
web, patch, third-party-advisory
-
oracle.com
//security-alerts/cpujul2021.html
web, patch, third-party-advisory
-
oracle.com
/security-alerts/cpuoct2021.html
web, patch, third-party-advisory
-
github.com
/spring-projects/spring-framework/commit/bc7d01048579430b4b2df668178809b63d3f1929
web
-
pivotal.io
/security/cve-2020-5397
web, exploit, vendor-advisory
-
oracle.com
/security-alerts/cpujul2022.html
web
-
nvd.nist.gov
/vuln/detail/CVE-2020-5397
advisory
-
github.com
/spring-projects/spring-framework
package
Sources
- CVE List CVE-2020-5397
- GitHub Advisory GHSA-7pm4-g2qj-j85x
- NVD CVE-2020-5397
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.