VDB
Sign up
MEDIUM5.9

GHSA-g8hw-794c-4j9g

Path Traversal in org.springframework:spring-core

Quick fix

GHSA-g8hw-794c-4j9g — org.springframework:spring-core: upgrade to the fixed version with the command below.

# pom.xml: bump <version>5.0.5</version> for org.springframework:spring-core

Details

Spring Framework, versions 5.0 prior to 5.0.5 and versions 4.3 prior to 4.3.15 and older unsupported versions, allow applications to configure Spring MVC to serve static resources (e.g. CSS, JS, images). When static resources are served from a file system on Windows (as opposed to the classpath, or the ServletContext), a malicious user can send a request using a specially crafted URL that can lead a directory traversal attack.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.springframework:spring-core
Introduced in: 5.0.0Fixed in: 5.0.5
Fix# pom.xml: bump <version>5.0.5</version> for org.springframework:spring-core
Maven/org.springframework:spring-core
Introduced in: 0Fixed in: 4.3.15
Fix# pom.xml: bump <version>4.3.15</version> for org.springframework:spring-core

References