# Apache Tomcat Race Condition vulnerability

Advisory record · `GHSA-6v52-mj5r-7j2m`

- **Identifiers:** `GHSA-6v52-mj5r-7j2m` · `CVE-2018-8037`
- **State:** Confirmed
- **Severity:** CVSS 5.9 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-362](https://cwe.mitre.org/data/definitions/362.html)
- **Tags:** [Race condition](https://agentprime.io/advisories/tag/race-condition.md)
- **Published:** 17 Oct 2018
- **Updated:** 11 Mar 2024
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 17 Oct 2018, 16:33 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 `>=9.0.0.M9, <9.0.10 || >=8.5.5, <8.5.32`; fixed in `9.0.10`, `8.5.32`

## 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.11, the 96th percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

This record came from the full history of the GitHub Advisory Database, published 17 Oct 2018. New records show when each source confirmed them.

## Sources

- [GitHub Advisory Database: GHSA-6v52-mj5r-7j2m](https://github.com/advisories/GHSA-6v52-mj5r-7j2m)
- [OSV: GHSA-6v52-mj5r-7j2m](https://osv.dev/vulnerability/GHSA-6v52-mj5r-7j2m)
- <https://nvd.nist.gov/vuln/detail/CVE-2018-8037>
- <https://github.com/apache/tomcat/commit/4c04369c287233ea2e8e5135f6c31d02e2d76293>
- <https://github.com/apache/tomcat/commit/ccf2e6bf5205561ad18c2300153e9173ec509d73>
- <https://github.com/apache/tomcat/commit/ed4b9d791f9470e4c3de691dd0153a9ce431701b>
- <https://github.com/apache/tomcat/commit/f94eedf02b5973598ab3dbbd4504da588e9ba6cb>
- <https://access.redhat.com/errata/RHSA-2018:2867>
- <https://lists.apache.org/thread.html/e85e83e9954f169bbb77b44baae5a33d8de878df557bb32b7f793661%40%3Cdev.tomcat.apache.org%3E>
- <https://lists.apache.org/thread.html/e85e83e9954f169bbb77b44baae5a33d8de878df557bb32b7f793661@%3Cdev.tomcat.apache.org%3E>
- <https://lists.apache.org/thread.html/eb6efa8d59c45a7a9eff94c4b925467d3b3fec8ba7697f3daa314b04%40%3Cdev.tomcat.apache.org%3E>
- <https://lists.apache.org/thread.html/eb6efa8d59c45a7a9eff94c4b925467d3b3fec8ba7697f3daa314b04@%3Cdev.tomcat.apache.org%3E>
- <https://lists.apache.org/thread.html/r3bbb800a816d0a51eccc5a228c58736960a9fffafa581a225834d97d%40%3Cdev.tomcat.apache.org%3E>
- <https://lists.apache.org/thread.html/r3bbb800a816d0a51eccc5a228c58736960a9fffafa581a225834d97d@%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-6v52-mj5r-7j2m>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-6v52-mj5r-7j2m/>. Everything for agents: <https://agentprime.io/llms.txt>.
