VDB
KO
LOW 3.1

GHSA-wg35-8jpf-2xv3

Spring MVC and WebFlux applications are vulnerable to cache poisoning when resolving static resources.

Details

Spring MVC and WebFlux applications are vulnerable to cache poisoning when resolving static resources.

More precisely, an application can be vulnerable when all the following are true:

* the application is using Spring MVC or Spring WebFlux * the application is configuring the  resource chain support https://docs.spring.io/spring-framework/reference/web/webmvc/mvc-config/static-resources.html#page-title  with caching enabled * the application adds support for encoded resources resolution * the resource cache must be empty when the attacker has access to the application

When all the conditions above are met, the attacker can send malicious requests and poison the resource cache with resources using the wrong encoding. This can cause a denial of service by breaking the front-end application for clients.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven / org.springframework:spring-webflux
Introduced in: 7.0.0 Fixed in: 7.0.7
Fix # pom.xml: bump <version>7.0.7</version> for org.springframework:spring-webflux
Maven / org.springframework:spring-webflux
Introduced in: 6.2.0 Fixed in: 6.2.18
Fix # pom.xml: bump <version>6.2.18</version> for org.springframework:spring-webflux
Maven / org.springframework:spring-webflux
Introduced in: 6.1.0

No fixed version published yet for org.springframework:spring-webflux (maven). Pin to a known-safe version or switch to an alternative.

Maven / org.springframework:spring-webflux
Introduced in: 0

No fixed version published yet for org.springframework:spring-webflux (maven). Pin to a known-safe version or switch to an alternative.

Maven / org.springframework:spring-webmvc
Introduced in: 7.0.0 Fixed in: 7.0.7
Fix # pom.xml: bump <version>7.0.7</version> for org.springframework:spring-webmvc
Maven / org.springframework:spring-webmvc
Introduced in: 6.2.0 Fixed in: 6.2.18
Fix # pom.xml: bump <version>6.2.18</version> for org.springframework:spring-webmvc
Maven / org.springframework:spring-webmvc
Introduced in: 6.1.0

No fixed version published yet for org.springframework:spring-webmvc (maven). Pin to a known-safe version or switch to an alternative.

Maven / org.springframework:spring-webmvc
Introduced in: 0

No fixed version published yet for org.springframework:spring-webmvc (maven). Pin to a known-safe version or switch to an alternative.

References