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

Advisory record · `GHSA-rh8q-vjgf-gf74`

- **Identifiers:** `GHSA-rh8q-vjgf-gf74` · `CVE-2015-5345`
- **State:** Confirmed
- **Severity:** CVSS 5.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 `>=9.0.0.M1, <9.0.0.M2 || >=8.0.0-RC1, <8.0.30 || >=7.0.0, <7.0.68 || >=6.0.0, <6.0.45`; fixed in `9.0.0.M2`, `8.0.30`, `7.0.68`, `6.0.45`

## Machine-written summary

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

> Apache Tomcat (org.apache.tomcat:tomcat) versions 6.0.0 to before 6.0.45, 7.0.0 to before 7.0.68, 8.0.0-RC1 to before 8.0.30, and 9.0.0.M1 to before 9.0.0.M2 are affected. A remote attacker can send a request to a URL without a trailing slash to learn whether a directory exists, because the Mapper handles redirects before security constraints and Filters are applied. Upgrade to 6.0.45, 7.0.68, 8.0.30, 9.0.0.M2 or later; no workaround is listed.

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

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

- **CISA KEV:** Not listed.
- **EPSS:** 0.18, the 97th 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-rh8q-vjgf-gf74)

## Sources

- [GitHub Advisory Database: GHSA-rh8q-vjgf-gf74](https://github.com/advisories/GHSA-rh8q-vjgf-gf74)
- [OSV: GHSA-rh8q-vjgf-gf74](https://osv.dev/vulnerability/GHSA-rh8q-vjgf-gf74)
- <https://nvd.nist.gov/vuln/detail/CVE-2015-5345>
- <https://github.com/apache/tomcat80/commit/c15c2aba8eb42425f9ebcfcaef579dada38ad3a2>
- <https://github.com/apache/tomcat/commit/127d8ea86d245846f0472865f0eb1eb111955e71>
- <https://github.com/apache/tomcat/commit/58c09b6217c546e1a251a82da227018f05277228>
- <https://github.com/apache/tomcat/commit/66daa4adc14b3e939659879153c0a579fdfcb099>
- <https://github.com/apache/tomcat/commit/7288bc70a14edcfeff0a96e333a858be374cfc64>
- <https://github.com/apache/tomcat/commit/816552abf6735fa37dfd37c8a7bfbdbd045477e0>
- <https://github.com/apache/tomcat/commit/8437193708e4bf6b2861a7953dc472f9dad49111>
- <https://github.com/apache/tomcat/commit/89cd0cf33a99dbbcf5c69050a83b6876e39269d7>
- <https://github.com/apache/tomcat/commit/a273b5f45cb46a273d06510a689fc314155a952d>
- <https://github.com/apache/tomcat/commit/c584c7c4ab0686e4125eefcd0afb32fb8269da3d>
- <https://github.com/apache/tomcat80/commit/2b643a4e36d318d55ec57fee57610671656d23c0>

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-rh8q-vjgf-gf74>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-rh8q-vjgf-gf74/>. Everything for agents: <https://agentprime.io/llms.txt>.
