# Information Disclosure in Apache Tomcat

Advisory record · `GHSA-2rvv-w9r2-rg7m`

- **Identifiers:** `GHSA-2rvv-w9r2-rg7m` · `BIT-tomcat-2021-24122` · `CVE-2021-24122`
- **State:** Confirmed
- **Severity:** CVSS 5.9 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-200](https://cwe.mitre.org/data/definitions/200.html) · [CWE-706](https://cwe.mitre.org/data/definitions/706.html)
- **Tags:** [Information disclosure](https://agentprime.io/advisories/tag/info-disclosure.md) · [CWE-706](https://agentprime.io/advisories/tag/cwe-706.md)
- **Published:** 13 May 2021
- **Updated:** 7 Aug 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 13 May 2021, 22:30 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `org.apache.tomcat.embed:tomcat-embed-core` (Maven): affected `>=10.0.0-M1, <10.0.0-M10 || >=9.0.0, <9.0.40 || >=8.5.0, <8.5.60 || >=7.0.0, <7.0.107`; fixed in `10.0.0-M10`, `9.0.40`, `8.5.60`, `7.0.107`

## Machine-written summary

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

> Apache Tomcat (tomcat-embed-core) versions 10.0.0-M1 to 10.0.0-M9, 9.0.0.M1 to 9.0.39, 8.5.0 to 8.5.59 and 7.0.0 to 7.0.106 are affected. When resources are served from a network location on an NTFS file system, an attacker may be able to obtain JSP source code in some configurations. Upgrade to 10.0.0-M10, 9.0.40, 8.5.60, 7.0.107 or later.

Written 2 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.1: `CVSS:3.1/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.23, the 97th percentile, on 6 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:19 UTC: First seen by agentprime
- 31 Oct 2026, 14:19 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-2rvv-w9r2-rg7m)

## Sources

- [GitHub Advisory Database: GHSA-2rvv-w9r2-rg7m](https://github.com/advisories/GHSA-2rvv-w9r2-rg7m)
- [OSV: GHSA-2rvv-w9r2-rg7m](https://osv.dev/vulnerability/GHSA-2rvv-w9r2-rg7m)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-24122>
- <https://github.com/apache/tomcat/commit/7f004ac4531c45f9a2a2d1470561fe135cf27bc2>
- <https://github.com/apache/tomcat/commit/800b03140e640f8892f27021e681645e8e320177>
- <https://github.com/apache/tomcat/commit/920dddbdb981f92e8d5872a4bb126a10af5ca8a9>
- <https://github.com/apache/tomcat/commit/935fc5582dc25ae10bab6f9d5629ff8d996cb533>
- <https://www.oracle.com//security-alerts/cpujul2021.html>
- <https://tomcat.apache.org/security-9.html>
- <https://tomcat.apache.org/security-8.html>
- <https://tomcat.apache.org/security-7.html>
- <https://tomcat.apache.org/security-10.html>
- <https://security.netapp.com/advisory/ntap-20210212-0008>
- <https://lists.debian.org/debian-lts-announce/2021/03/msg00018.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-2rvv-w9r2-rg7m>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-2rvv-w9r2-rg7m/>. Everything for agents: <https://agentprime.io/llms.txt>.
