Skip to content
OpenAdvisories

Description

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.

Affected products

VendorProductAffectedFixed
VMware Spring Framework 7.0.0 – < 7.0.7, 6.2.0 – < 6.2.18, 6.1.0 – < 6.1.27, 5.3.0 – < 5.3.48 7.0.7

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
Debian 14 libspring-java No fix yet —
Debian 13 libspring-java No fix yet —
Debian 12 libspring-java No fix yet —
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 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling apache-nifi-registry 2.9.0-r8 —
Wolfi rolling thingsboard-tb-node +1 4.3.1.1-r11 —

Affected packages

Advisories 2

References