# In Apache Tomcat there is an improper handing of overflow in the UTF-8 decoder

Advisory record · `GHSA-m59c-jpc8-m2x4`

- **Identifiers:** `GHSA-m59c-jpc8-m2x4` · `CVE-2018-1336`
- **State:** Confirmed
- **Severity:** CVSS 7.5 High
- **Critical:** Yes: CVSS 7+ and EPSS
- **Weakness (CWE):** [CWE-835](https://cwe.mitre.org/data/definitions/835.html)
- **Tags:** [Denial of service](https://agentprime.io/advisories/tag/dos.md)
- **Published:** 17 Oct 2018
- **Updated:** 12 Mar 2024
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 17 Oct 2018, 16:32 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Critical

Critical, because:

- CVSS score 7.5 (7.0 or more) and EPSS 0.20 (0.1 or more): a high score and a real chance of exploitation in the next 30 days.

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

## Affected packages

- `org.apache.tomcat.embed:tomcat-embed-core` (Maven): affected `>=9.0.0.M9, <9.0.8 || >=8.5.0, <8.5.31 || >=8.0.0RC1, <8.0.51 || >=7.0.28, <7.0.87`; fixed in `9.0.8`, `8.5.31`, `8.0.51`, `7.0.87`

## Machine-written summary

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

> Apache Tomcat (the tomcat-embed-core Maven package) versions 9.0.0.M9 to 9.0.7, 8.5.0 to 8.5.30, 8.0.0.RC1 to 8.0.51, and 7.0.28 to 7.0.86 are affected. A flaw in the UTF-8 decoder when handling supplementary characters can cause an infinite loop, so an attacker can trigger a denial of service. Upgrade to 9.0.8, 8.5.31, 8.0.51, or 7.0.87, depending on your release line.

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

- 7.5 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`, from GitHub Advisory Database

- **CISA KEV:** Not listed.
- **EPSS:** 0.20, the 97th percentile, on 19 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-m59c-jpc8-m2x4)

## Sources

- [GitHub Advisory Database: GHSA-m59c-jpc8-m2x4](https://github.com/advisories/GHSA-m59c-jpc8-m2x4)
- [OSV: GHSA-m59c-jpc8-m2x4](https://osv.dev/vulnerability/GHSA-m59c-jpc8-m2x4)
- <https://nvd.nist.gov/vuln/detail/CVE-2018-1336>
- <https://github.com/apache/tomcat80/commit/9e9b7fe1b5732277a26e437f1d32155de6208ef2>
- <https://github.com/apache/tomcat/commit/e00812b94e5830b2be3de04f4ae4ade38a700074>
- <https://github.com/apache/tomcat/commit/92cd494555598e99dd691712e8ee426a2f9c2e93>
- <https://github.com/apache/tomcat/commit/156d76a6afeef440d14044a560d6ad1d029361c4>
- <https://lists.apache.org/thread.html/r6ccee4e849bc77df0840c7f853f6bd09d426f6741247da2b7429d5d9@%3Cdev.tomcat.apache.org%3E>
- <https://lists.apache.org/thread.html/r6ccee4e849bc77df0840c7f853f6bd09d426f6741247da2b7429d5d9%40%3Cdev.tomcat.apache.org%3E>
- <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-m59c-jpc8-m2x4>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-m59c-jpc8-m2x4/>. Everything for agents: <https://agentprime.io/llms.txt>.
