# Expected Behavior Violation in Apache Tomcat

Advisory record · `GHSA-9hg2-395j-83rm`

- **Identifiers:** `GHSA-9hg2-395j-83rm` · `CVE-2017-5651`
- **State:** Confirmed
- **Severity:** CVSS 9.8 Critical
- **Critical:** Yes: CVSS 9+
- **Weakness (CWE):** [CWE-440](https://cwe.mitre.org/data/definitions/440.html)
- **Tags:** [CWE-440](https://agentprime.io/advisories/tag/cwe-440.md)
- **Published:** 13 May 2022
- **Updated:** 18 Apr 2024
- **Reviewed by a person:** No

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

## Critical

Critical, because:

- CVSS score 9.8: 9.0 or more.

How we decide what’s critical: <https://agentprime.io/advisories/critical.md>

## Affected packages

- `org.apache.tomcat:tomcat-coyote` (Maven): affected `>=9.0.0.M1, <9.0.0.M19 || >=8.5.0, <8.5.13`; fixed in `9.0.0.M19`, `8.5.13`
- `org.apache.tomcat.embed:tomcat-embed-core` (Maven): affected `>=9.0.0.M1, <9.0.0.M19 || >=8.5.0, <8.5.13`; fixed in `9.0.0.M19`, `8.5.13`

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

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

- **CISA KEV:** Not listed.
- **EPSS:** 0.078, the 94th percentile, on 6 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-9hg2-395j-83rm)

## Sources

- [GitHub Advisory Database: GHSA-9hg2-395j-83rm](https://github.com/advisories/GHSA-9hg2-395j-83rm)
- [OSV: GHSA-9hg2-395j-83rm](https://osv.dev/vulnerability/GHSA-9hg2-395j-83rm)
- <https://nvd.nist.gov/vuln/detail/CVE-2017-5651>
- <https://github.com/apache/tomcat/commit/494429ca210641b6b7affe89a2b0a6c0ff70109b>
- <https://github.com/apache/tomcat/commit/9233d9d6a018be4415d4d7d6cb4fe01176adf1a8>
- <https://web.archive.org/web/20170420113605/http://www.securitytracker.com/id/1038219>
- <https://web.archive.org/web/20170417124228/http://www.securityfocus.com/bid/97544>
- <https://security.netapp.com/advisory/ntap-20180614-0001>
- <https://security.gentoo.org/glsa/201705-09>
- <https://lists.apache.org/thread.html/r48c1444845fe15a823e1374674bfc297d5008a5453788099ea14caf0@%3Cdev.tomcat.apache.org%3E>
- <https://lists.apache.org/thread.html/r48c1444845fe15a823e1374674bfc297d5008a5453788099ea14caf0%40%3Cdev.tomcat.apache.org%3E>
- <https://lists.apache.org/thread.html/r3bbb800a816d0a51eccc5a228c58736960a9fffafa581a225834d97d@%3Cdev.tomcat.apache.org%3E>
- <https://lists.apache.org/thread.html/r3bbb800a816d0a51eccc5a228c58736960a9fffafa581a225834d97d%40%3Cdev.tomcat.apache.org%3E>
- <https://lists.apache.org/thread.html/eb6efa8d59c45a7a9eff94c4b925467d3b3fec8ba7697f3daa314b04@%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-9hg2-395j-83rm>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-9hg2-395j-83rm/>. Everything for agents: <https://agentprime.io/llms.txt>.
