# Path Traversal in org.springframework:spring-core

Advisory record · `GHSA-g8hw-794c-4j9g`

- **Identifiers:** `GHSA-g8hw-794c-4j9g` · `CVE-2018-1271`
- **State:** Confirmed
- **Severity:** CVSS 5.9 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-22](https://cwe.mitre.org/data/definitions/22.html)
- **Tags:** [Path traversal](https://agentprime.io/advisories/tag/path-traversal.md)
- **Published:** 17 Oct 2018
- **Updated:** 17 Mar 2024
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 17 Oct 2018, 20:07 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `org.springframework:spring-core` (Maven): affected `>=5.0.0, <5.0.5 || <4.3.15`; fixed in `5.0.5`, `4.3.15`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Spring Framework's spring-core package, versions 5.0 before 5.0.5 and 4.3 before 4.3.15, is affected by a path traversal flaw. When Spring MVC serves static resources from a file system on Windows, a remote attacker can send a specially crafted URL to perform a directory traversal attack. Upgrade spring-core to version 5.0.5 or 4.3.15.

Written 8 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 5.9 Medium, CVSS 3.0: `CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`, from GitHub Advisory Database

- **CISA KEV:** Not listed.
- **EPSS:** 0.30, the 98th percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 15:13 UTC: First seen by agentprime
- 31 Oct 2026, 15:13 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-g8hw-794c-4j9g)

## Sources

- [GitHub Advisory Database: GHSA-g8hw-794c-4j9g](https://github.com/advisories/GHSA-g8hw-794c-4j9g)
- [OSV: GHSA-g8hw-794c-4j9g](https://osv.dev/vulnerability/GHSA-g8hw-794c-4j9g)
- <https://nvd.nist.gov/vuln/detail/CVE-2018-1271>
- <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>
- <https://www.oracle.com/technetwork/security-advisory/cpujul2019-5072835.html>
- <https://www.oracle.com/technetwork/security-advisory/cpujan2019-5072801.html>
- <https://www.oracle.com/security-alerts/cpuoct2021.html>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-g8hw-794c-4j9g>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-g8hw-794c-4j9g/>. Everything for agents: <https://agentprime.io/llms.txt>.
