CVE-2016-5018 · apache
CVE-2016-5018
In Apache Tomcat 9.0.0.M1 to 9.0.0.M9, 8.5.0 to 8.5.4, 8.0.0.RC1 to 8.0.36, 7.0.0 to 7.0.70 and 6.0.0 to 6.0.45 a malicious web application was able to bypass a configured SecurityManager via a Tomcat utility method that was accessible to web applications.
Published 2017-08-10, last changed 2026-10-08.
Public exploits
| Source | Kind | Reference |
|---|---|---|
| exploit-db | proof-of-concept | EDB-47892 |
How to fix
Upgrade to a fixed version: org.apache.tomcat:tomcat-jasper 7.0.72, 8.0.37, 8.5.5, 9.0.0.M10 (Maven); org.apache.tomcat:jasper 6.0.47 (Maven); org.apache.tomcat.embed:tomcat-embed-jasper 6.0.47, 7.0.72, 8.0.37, 8.5.5, 9.0.0.M10 (Maven) (each is the fix for its own release line). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in apache/tomcat by 648122fef8, 890a2f681e, a6b1ebc246. Functions changed by the fix: run, introspecthelper, internalIntrospecthelper. Confidence: inferred (code changed near the fix, but no record names this exact commit as the fix).
Timeline
| 2017-08-10 | Published |
| 2022-05-13 | Package advisory GHSA-4v3g-g84w-hv7r |
| 2026-10-08 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 49.0% |
| 2026-12-01 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-4v3g-g84w-hv7r | org.apache.tomcat:tomcat-jasper (Maven) | 9.0.0.M10 |
| GHSA-4v3g-g84w-hv7r | org.apache.tomcat:tomcat-jasper (Maven) | 8.5.5 |
| GHSA-4v3g-g84w-hv7r | org.apache.tomcat:tomcat-jasper (Maven) | 8.0.37 |
| GHSA-4v3g-g84w-hv7r | org.apache.tomcat:tomcat-jasper (Maven) | 7.0.72 |
| GHSA-4v3g-g84w-hv7r | org.apache.tomcat:jasper (Maven) | 6.0.47 |
Also known as: GHSA-4v3g-g84w-hv7r
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2024-52318 | 2024-11-18 | 6.1 | Apache Tomcat: Incorrect JSP tag recycling leads to XSS |
| CVE-2014-0119 | 2014-05-31 | 4.3 | same package: org.apache.tomcat:tomcat-jasper (Maven) |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2016-5018, or call /api/v1/vulnerabilities/CVE-2016-5018. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.