# Improper Limitation of a Pathname to a Restricted Directory in Apache Tomcat

Advisory record · `GHSA-6qr6-x7jm-x2q6`

- **Identifiers:** `GHSA-6qr6-x7jm-x2q6` · `CVE-2015-5174`
- **State:** Confirmed
- **Severity:** CVSS 4.3 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:** 14 May 2022
- **Updated:** 28 Aug 2025
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 14 May 2022, 01:10 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `org.apache.tomcat:tomcat` (Maven): affected `>=8.0.0-RC1, <8.0.27 || >=7.0.0, <7.0.65 || >=6.0.0, <6.0.45`; fixed in `8.0.27`, `7.0.65`, `6.0.45`

## Machine-written summary

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

> Apache Tomcat versions 6.0.0 to before 6.0.45, 7.0.0 to before 7.0.65, and 8.0.0-RC1 to before 8.0.27 are affected. A remote authenticated user can use a crafted pathname in a web application's getResource, getResourceAsStream, or getResourcePaths call to bypass SecurityManager restrictions and list a parent directory. Upgrade to 6.0.45, 7.0.65, 8.0.27, or later.

Written 7 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

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

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

## Timeline

- 31 Oct 2026, 15:10 UTC: First seen by agentprime
- 31 Oct 2026, 15:10 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-6qr6-x7jm-x2q6)

## Sources

- [GitHub Advisory Database: GHSA-6qr6-x7jm-x2q6](https://github.com/advisories/GHSA-6qr6-x7jm-x2q6)
- [OSV: GHSA-6qr6-x7jm-x2q6](https://osv.dev/vulnerability/GHSA-6qr6-x7jm-x2q6)
- <https://nvd.nist.gov/vuln/detail/CVE-2015-5174>
- <https://security.netapp.com/advisory/ntap-20180531-0001>
- <https://security.gentoo.org/glsa/201705-09>
- <https://lists.apache.org/thread.html/rd4863c79bf729aabb95571fd845a9ea4ee3ae3fcee48f35aba007350@%3Cusers.tomcat.apache.org%3E>
- <https://lists.apache.org/thread.html/r9136ff5b13e4f1941360b5a309efee2c114a14855578c3a2cbe5d19c@%3Cdev.tomcat.apache.org%3E>
- <https://lists.apache.org/thread.html/r587e50b86c1a96ee301f751d50294072d142fd6dc08a8987ae9f3a9b@%3Cdev.tomcat.apache.org%3E>
- <https://lists.apache.org/thread.html/r409efdf706c2077ae5c37018a87da725a3ca89570a9530342cdc53e4@%3Cusers.tomcat.apache.org%3E>
- <https://lists.apache.org/thread.html/r1c62634b7426bee5f553307063457b99c84af73b078ede4f2592b34e@%3Cusers.tomcat.apache.org%3E>
- <https://lists.apache.org/thread.html/r15695e6203b026c9e9070ca9fa95fb17dd4cd88e5342a7dc5e1e7b85@%3Cusers.tomcat.apache.org%3E>
- <https://lists.apache.org/thread.html/r0b24f2c7507f702348e2c2d64e8a5de72bad6173658e8d8e45322ac2@%3Cusers.tomcat.apache.org%3E>
- <https://lists.apache.org/thread.html/r03c597a64de790ba42c167efacfa23300c3d6c9fe589ab87fe02859c@%3Cdev.tomcat.apache.org%3E>
- <https://lists.apache.org/thread.html/b8a1bf18155b552dcf9a928ba808cbadad84c236d85eab3033662cfb@%3Cdev.tomcat.apache.org%3E>

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-6qr6-x7jm-x2q6>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-6qr6-x7jm-x2q6/>. Everything for agents: <https://agentprime.io/llms.txt>.
