CVE-2018-1271
Path Traversal in org.springframework:spring-core
Also known as GHSA-g8hw-794c-4j9g
Mitigation
- Upgrade org.springframework:spring-core to one of 5.0.5, 4.3.15 (or later in the same release line).
Who should check
- Projects that depend on Maven package org.springframework:spring-core (>= 5.0.0, < 5.0.5)
- Anyone running Spring by Pivotal Spring Framework Versions prior to 5.0.5 and 4.3.15
Vulnerability facts
- Affected
- org.springframework:spring-core >= 5.0.0, < 5.0.5
- Fixed in
- 5.0.5, 4.3.15
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 5.9 (v3.1, NVD)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: None
- EPSS
- 30.34% chance of exploitation in 30 days (percentile 99, 2026-11-26)
- CWE
- CWE-22
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Maven org.springframework:spring-core | >= 5.0.0, < 5.0.5 | 5.0.5, 4.3.15 | osv |
| Spring by Pivotal Spring Framework | Versions prior to 5.0.5 and 4.3.15 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2018-1271. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2018-1271.md Affected: org.springframework:spring-core >= 5.0.0, < 5.0.5 Fixed in: 5.0.5, 4.3.15 Steps: 1. Search this machine and project for org.springframework:spring-core (Maven), Spring by Pivotal Spring Framework: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
- http://www.oracle.com/technetwork/security-advisory/cpujul2018-4258247.html
- http://www.oracle.com/technetwork/security-advisory/cpuoct2018-4428296.html
- https://www.oracle.com/technetwork/security-advisory/cpujan2019-5072801.html
- https://www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html
- https://github.com/spring-projects/spring-framework/commit/0e28bee0f155b9bf240b4bafc4646e4810cb23f8
- https://github.com/spring-projects/spring-framework/commit/13356a7ee2240f740737c5c83bdccdacc30603ab
- https://github.com/spring-projects/spring-framework/commit/695bf2961feffd35b5560ccc982a2189dcca611f
- https://github.com/spring-projects/spring-framework/commit/91b803a2310344d925e5d4b1709bbcea90375548
- https://github.com/spring-projects/spring-framework/commit/98ad23bef8e2e04143f8f5b201380543a8d8c0c3
- https://github.com/spring-projects/spring-framework/commit/b9ebdaaf3710db473a2e1fec8641c316483a22aa
- https://github.com/spring-projects/spring-framework/commit/f046a066eceefa0799d1bc89bd6e1318f39bdf69
- https://github.com/spring-projects/spring-framework/commit/f59ea610dfcf55cd0b42f6dd76a9b3dab0218aaa
FAQ
Is CVE-2018-1271 being exploited?
There is no confirmed exploitation: CVE-2018-1271 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 30.34% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2018-1271?
Medium: CVSS 5.9 (v3.1, scored by NVD). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2018-1271?
org.springframework:spring-core >= 5.0.0, < 5.0.5.
Is there a fix for CVE-2018-1271?
Yes. Fixed in 5.0.5, 4.3.15. Upgrade org.springframework:spring-core to one of 5.0.5, 4.3.15 (or later in the same release line).
How do I check if I'm affected by CVE-2018-1271?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.