Skip to content
OpenAdvisories
Medium · 5.3 CVE-2020-5397 EUVD-2020-0253GHSA-7pm4-g2qj-j85x

CSRF Attack via CORS Preflight Requests with Spring MVC or Spring WebFlux

Published Jan 17, 2020 · Updated Sep 17, 2024 · Assigned by pivotal

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.

Affected products

VendorProductAffectedFixed
Spring Spring Framework 5.2 – < v5.2.3.RELEASE v5.2.3.RELEASE

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 libspring-java No fix yet —
Ubuntu 26.04 LTS libspring-java No fix yet —
Ubuntu 25.10 libspring-java No fix yet —
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS libspring-java No fix yet —
Ubuntu Pro 22.04 LTS libspring-java No fix yet —
Ubuntu Pro 20.04 LTS libspring-java No fix yet —
Ubuntu Pro 18.04 LTS libspring-java No fix yet —
Ubuntu Pro 16.04 LTS libspring-java No fix yet —
Ubuntu Pro 14.04 LTS libspring-java No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.springframework:spring-webflux >= 5.2.0, < 5.2.3 5.2.3 GHSA-7pm4-g2qj-j85x
Maven org.springframework:spring-webmvc >= 5.2.0, < 5.2.3 5.2.3 GHSA-7pm4-g2qj-j85x

Advisories 1

References