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

Scores

VersionScoreVectorScored by
CVSS 3.0MEDIUM 5.3CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:Npivotal
CVSS 3.1MEDIUM 5.3CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:NNVD · nvd@nist.gov (Primary)
CVSS 3.0MEDIUM 5.3CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:NNVD · security@pivotal.io (Secondary)
CVSS 2.0LOW 2.6AV:N/AC:H/Au:N/C:N/I:P/A:NNVD · nvd@nist.gov (Primary)

Advisories

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Spring · Spring Frameworkaffected 5.2 < v5.2.3.RELEASE

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD