CVE-2018-1271 Path Traversal in org.springframework:spring-core

Medium 5.9 Published Updated

Attackers can read arbitrary files on Windows servers if Spring MVC is configured to serve static resources from the file system.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2018-1271?

CVE-2018-1271 is a medium-severity path traversal vulnerability in Oracle Application Testing Suite, published on 6 Apr 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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.

Weakness: CWE-22

Which versions are affected by CVE-2018-1271?

4 open source packages ship an affected version, including org.springframework:spring-core. It affects 28 products.

PackageAffectedFixed in
org.springframework:spring-core MavenAll versions4.3.15
org.springframework:spring-core MavenAll versions4.3.15
org.springframework:spring-core MavenFrom 5.0.05.0.5
org.springframework:spring-core MavenFrom 5.0.05.0.5

Products include Oracle Application Testing Suite, Oracle Big Data Discovery, Oracle Communications Converged Application Server, Oracle Communications Diameter Signaling Router, Oracle Communications Performance Intelligence Center, Oracle Communications Policy Management and 22 more.

How do I fix CVE-2018-1271?

Upgrade org.springframework:spring-core to a fixed version for your release line: 4.3.15 or 5.0.5.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2018-1271 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2018-1271 exists.

Public exploit code: 1 Nuclei template.

All Oracle Application Testing Suite vulnerabilities

Sources

Also known as GHSA-g8hw-794c-4j9g.

Is CVE-2018-1271 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free