CVE-2020-5397: CSRF attack via CORS preflight requests with Spring MVC or Spring WebFlux

CVE-2020-5397 · Severity: low · CVSS 3 · Published 2020-01-21

CSRF attack via CORS preflight requests with Spring MVC or Spring WebFlux

Technologies: org.springframework:spring-webflux (Maven), org.springframework:spring-webmvc (Maven). Vendors: Maven.

Quick answers

Is CVE-2020-5397 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2020-5397 being exploited in the wild.
How severe is CVE-2020-5397?
Low severity, with a CVSS score of 3, published 21 January 2020.
Which products and versions are affected?
org.springframework:spring-webflux (Maven) ECOSYSTEM:introduced=5.2.0,fixed=5.2.3; org.springframework:spring-webmvc (Maven) ECOSYSTEM:introduced=5.2.0,fixed=5.2.3.
Is there a fix for CVE-2020-5397?
Yes. org.springframework:spring-webflux (Maven): upgrade to 5.2.3 or later; org.springframework:spring-webmvc (Maven): upgrade to 5.2.3 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2020-5397?
Check whether you run org.springframework:spring-webflux (Maven) or org.springframework:spring-webmvc (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • org.springframework:spring-webflux (Maven): upgrade to 5.2.3 or later
    # set org.springframework:spring-webflux to 5.2.3 in your pom.xml or build.gradle
  • org.springframework:spring-webmvc (Maven): upgrade to 5.2.3 or later
    # set org.springframework:spring-webmvc to 5.2.3 in your pom.xml or build.gradle

Affected products

  • org.springframework:spring-webflux (Maven) ECOSYSTEM:introduced=5.2.0,fixed=5.2.3
  • org.springframework:spring-webmvc (Maven) ECOSYSTEM:introduced=5.2.0,fixed=5.2.3

Identifiers

  • CVE-2020-5397
  • GHSA-7pm4-g2qj-j85x

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.