VDB
Sign up
MEDIUM5.9

GHSA-4773-3jfm-qmx3

Spring Framework Improper Path Limitation with Script View Templates

Quick fix

GHSA-4773-3jfm-qmx3 — org.springframework:spring-webmvc: upgrade to the fixed version with the command below.

# pom.xml: bump <version>7.0.6</version> for org.springframework:spring-webmvc

Details

Use of Java scripting engine enabled (e.g. JRuby, Jython) template views in Spring MVC and Spring WebFlux applications can result in disclosure of content from files outside the configured locations for script template views. This issue affects Spring Framework: from 7.0.0 through 7.0.5, from 6.2.0 through 6.2.16, from 6.1.0 through 6.1.25, from 5.3.0 through 5.3.46.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.springframework:spring-webmvc
Introduced in: 7.0.0-M1Fixed in: 7.0.6
Fix# pom.xml: bump <version>7.0.6</version> for org.springframework:spring-webmvc
Maven/org.springframework:spring-webmvc
Introduced in: 6.2.0Fixed in: 6.2.17
Fix# pom.xml: bump <version>6.2.17</version> for org.springframework:spring-webmvc
Maven/org.springframework:spring-webmvc
Introduced in: 6.0.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: 5.3.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-webflux
Introduced in: 7.0.0-M1Fixed in: 7.0.6
Fix# pom.xml: bump <version>7.0.6</version> for org.springframework:spring-webflux
Maven/org.springframework:spring-webflux
Introduced in: 6.2.0Fixed in: 6.2.17
Fix# pom.xml: bump <version>6.2.17</version> for org.springframework:spring-webflux
Maven/org.springframework:spring-webflux
Introduced in: 6.0.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: 5.3.0

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

References