CVE-2018-1271 Path Traversal in org.springframework:spring-core
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.
| Package | Affected | Fixed in |
|---|---|---|
org.springframework:spring-core Maven | All versions | 4.3.15 |
org.springframework:spring-core Maven | All versions | 4.3.15 |
org.springframework:spring-core Maven | From 5.0.0 | 5.0.5 |
org.springframework:spring-core Maven | From 5.0.0 | 5.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.
Other vulnerabilities in Oracle Application Testing Suite
- CVE-2026-35290 Auth bypass in Oracle Application Testing Suite
- CVE-2026-46876 Auth bypass in Oracle Application Testing Suite
- CVE-2026-46924 Auth bypass in Oracle Application Testing Suite
- CVE-2019-2904 Auth bypass in Enterprise Repository
- CVE-2018-1275 Spring Framework has Improperly Implemented Security Check for Standard
Sources
Also known as GHSA-g8hw-794c-4j9g.