Spring Framework Improper Path Limitation with Script View Templates
Spring Framework
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| org.springframework:spring-webmvc Maven |
|
|
| org.springframework:spring-webflux Maven |
Spring Framework
| Product | Affected | Fixed in |
|---|---|---|
| org.springframework:spring-webmvc Maven |
|
|
| org.springframework:spring-webflux Maven |
|
|
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.
From the CVE record · vmware
Spring MVC and Spring WebFlux applications using Java scripting engine–enabled template views, such as JRuby or Jython, may disclose content from files outside the configured script template view locations. The input does not specify whether exploitation requires authentication or user interaction, or whether access is network-based or local.
Teams running Spring Framework applications with spring-webmvc or spring-webflux should check the affected 7.0, 6.2, 6.1, and 5.3 versions; the supplied package ranges and description disagree on the upper bounds for 6.1 and 5.3.