CVE-2020-5397
CSRF Attack via CORS Preflight Requests with Spring MVC or Spring WebFlux
MEDIUM 5.3
At a glance
- Source
- NVD
- EPSS
- EPSS 2.55 % · percentile 85 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- pivotal
- NVD status
- Modified
Description
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.
Weaknesses (CWE)
- CWE-352 — Cross-Site Request Forgery
References
- https://www.oracle.com/security-alerts/cpuapr2020.html
- https://www.oracle.com/security-alerts/cpujul2020.html
- https://pivotal.io/security/cve-2020-5397
- https://www.oracle.com/security-alerts/cpuoct2020.html
- https://www.oracle.com//security-alerts/cpujul2021.html
- https://www.oracle.com/security-alerts/cpuoct2021.html
- https://www.oracle.com/security-alerts/cpujul2022.html
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.0 | MEDIUM 5.3 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N | pivotal |
| CVSS 3.1 | MEDIUM 5.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N | NVD · nvd@nist.gov (Primary) |
| CVSS 3.0 | MEDIUM 5.3 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N | NVD · security@pivotal.io (Secondary) |
| CVSS 2.0 | LOW 2.6 | AV:N/AC:H/Au:N/C:N/I:P/A:N | NVD · nvd@nist.gov (Primary) |
Advisories
- GHSA-7pm4-g2qj-j85x — CSRF attack via CORS preflight requests with Spring MVC or Spring WebFlux
European references
- ENISA EUVD · EUVD-2020-0253
- GCVE · GCVE-0-2020-5397
CERT-FR advisories
- CERTFR-2026-AVI-1336 — Multiples vulnérabilités dans les produits IBM · cert.ssi.gouv.fr
Affected configurations (NVD CPE)
cpe:2.3:a:vmware:spring_framework:*:*:*:*:*:*:*:*≥ 5.2.0 < 5.2.3cpe:2.3:a:oracle:application_testing_suite:13.3.0.1:*:*:*:*:*:*:*cpe:2.3:a:oracle:communications_brm_-_elastic_charging_engine:11.3:*:*:*:*:*:*:*cpe:2.3:a:oracle:communications_brm_-_elastic_charging_engine:12.0:*:*:*:*:*:*:*cpe:2.3:a:oracle:communications_diameter_signaling_router:*:*:*:*:*:*:*:*≥ 8.0.0 ≤ 8.2.2cpe:2.3:a:oracle:communications_element_manager:8.1.1:*:*:*:*:*:*:*cpe:2.3:a:oracle:communications_element_manager:8.2.0:*:*:*:*:*:*:*cpe:2.3:a:oracle:communications_element_manager:8.2.1:*:*:*:*:*:*:*cpe:2.3:a:oracle:communications_policy_management:12.5.0:*:*:*:*:*:*:*cpe:2.3:a:oracle:communications_session_route_manager:8.1.1:*:*:*:*:*:*:*cpe:2.3:a:oracle:communications_session_route_manager:8.2.0:*:*:*:*:*:*:*cpe:2.3:a:oracle:communications_session_route_manager:8.2.1:*:*:*:*:*:*:*cpe:2.3:a:oracle:enterprise_manager_base_platform:13.2.1.0:*:*:*:*:*:*:*cpe:2.3:a:oracle:financial_services_regulatory_reporting_with_agilereporter:8.0.9.2.0:*:*:*:*:*:*:*cpe:2.3:a:oracle:flexcube_private_banking:12.0.0:*:*:*:*:*:*:*cpe:2.3:a:oracle:flexcube_private_banking:12.1.0:*:*:*:*:*:*:*cpe:2.3:a:oracle:healthcare_master_person_index:4.0.2:*:*:*:*:*:*:*cpe:2.3:a:oracle:insurance_calculation_engine:*:*:*:*:*:*:*:*≥ 11.0.0 ≤ 11.3.1cpe:2.3:a:oracle:insurance_policy_administration_j2ee:10.2.0:*:*:*:*:*:*:*cpe:2.3:a:oracle:insurance_policy_administration_j2ee:10.2.4:*:*:*:*:*:*:*cpe:2.3:a:oracle:insurance_policy_administration_j2ee:11.0.2:*:*:*:*:*:*:*cpe:2.3:a:oracle:insurance_policy_administration_j2ee:11.1.0:*:*:*:*:*:*:*cpe:2.3:a:oracle:insurance_policy_administration_j2ee:11.2.0:*:*:*:*:*:*:*cpe:2.3:a:oracle:insurance_rules_palette:10.2.0:*:*:*:*:*:*:*cpe:2.3:a:oracle:insurance_rules_palette:10.2.4:*:*:*:*:*:*:*cpe:2.3:a:oracle:insurance_rules_palette:11.0.2:*:*:*:*:*:*:*cpe:2.3:a:oracle:insurance_rules_palette:11.1.0:*:*:*:*:*:*:*cpe:2.3:a:oracle:insurance_rules_palette:11.2.0:*:*:*:*:*:*:*cpe:2.3:a:oracle:mysql_enterprise_monitor:*:*:*:*:*:*:*:*≥ 4.0.0 ≤ 4.0.12cpe:2.3:a:oracle:mysql_enterprise_monitor:*:*:*:*:*:*:*:*≥ 8.0.0 ≤ 8.0.20cpe:2.3:a:oracle:rapid_planning:12.1:*:*:*:*:*:*:*cpe:2.3:a:oracle:rapid_planning:12.2:*:*:*:*:*:*:*cpe:2.3:a:oracle:retail_assortment_planning:15.0:*:*:*:*:*:*:*cpe:2.3:a:oracle:retail_assortment_planning:16.0:*:*:*:*:*:*:*cpe:2.3:a:oracle:retail_back_office:14.1:*:*:*:*:*:*:*cpe:2.3:a:oracle:retail_central_office:14.1:*:*:*:*:*:*:*cpe:2.3:a:oracle:retail_financial_integration:15.0:*:*:*:*:*:*:*cpe:2.3:a:oracle:retail_financial_integration:16.0:*:*:*:*:*:*:*cpe:2.3:a:oracle:retail_integration_bus:15.0.3:*:*:*:*:*:*:*cpe:2.3:a:oracle:retail_integration_bus:16.0.3:*:*:*:*:*:*:*- +12 more
Affected products
| Product | Versions |
|---|---|
| Spring · Spring Framework | affected 5.2 < v5.2.3.RELEASE |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |