CVEs / CVE-2016-5018
CVE-2016-5018: Apache Software Foundation Apache Tomcat vulnerability
- critical 9.1 CVSS 3.1 (NVD)
- EPSS 48.9% chance of exploitation in the next 30 days, higher than 99% of CVEs (26 Nov 2026)
- Last changed at its sources
Are you affected? Check your servers with Stackurity: it lists the software on each server and the vulnerabilities to fix first.
Check your servers with Stackurity Already using Stackurity? Search for CVE-2016-5018
Description
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.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| Apache Software Foundation Apache Tomcat | 9.0.0.M1 to 9.0.0.M9 | — |
| Apache Software Foundation Apache Tomcat | 8.5.0 to 8.5.4 | — |
| Apache Software Foundation Apache Tomcat | 8.0.0.RC1 to 8.0.36 | — |
| Apache Software Foundation Apache Tomcat | 7.0.0 to 7.0.70 | — |
| Apache Software Foundation Apache Tomcat | 6.0.0 to 6.0.45 | — |
| Product | Affected | Fixed in |
|---|---|---|
| org.apache.tomcat:tomcat-jasper (Maven) | from 9.0.0.M1, before 9.0.0.M10 | 9.0.0.M10 |
| org.apache.tomcat:tomcat-jasper (Maven) | from 8.5.0, before 8.5.5 | 8.5.5 |
| org.apache.tomcat:tomcat-jasper (Maven) | from 8.0.0RC1, before 8.0.37 | 8.0.37 |
| org.apache.tomcat:tomcat-jasper (Maven) | from 7.0.0, before 7.0.72 | 7.0.72 |
| org.apache.tomcat:jasper (Maven) | from 6.0.0, before 6.0.47 | 6.0.47 |
| org.apache.tomcat.embed:tomcat-embed-jasper (Maven) | from 9.0.0.M1, before 9.0.0.M10 | 9.0.0.M10 |
| org.apache.tomcat.embed:tomcat-embed-jasper (Maven) | from 8.5.0, before 8.5.5 | 8.5.5 |
| org.apache.tomcat.embed:tomcat-embed-jasper (Maven) | from 8.0.0RC1, before 8.0.37 | 8.0.37 |
| org.apache.tomcat.embed:tomcat-embed-jasper (Maven) | from 7.0.0, before 7.0.72 | 7.0.72 |
| org.apache.tomcat.embed:tomcat-embed-jasper (Maven) | from 6.0.0, before 6.0.47 | 6.0.47 |
Package versions from GHSA-4v3g-g84w-hv7r.
Exploitation
Not in the CISA Known Exploited Vulnerabilities catalog as of 25 Nov 2026.
Severity
| CVSS 3.1 | 9.1 criticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:NScored by NVD |
|---|
References
- CVE-2016-5018 on NVD
- CVE-2016-5018 on OSV
- http://packetstormsecurity.com/files/155873/Tomcat-9.0.0.M1-Sandbox-Escape.html Exploit, Third Party Advisory, VDB Entry
- http://rhn.redhat.com/errata/RHSA-2017-0457.html Third Party Advisory
- http://rhn.redhat.com/errata/RHSA-2017-1551.html Third Party Advisory
- http://www.debian.org/security/2016/dsa-3720 Third Party Advisory
- http://www.securityfocus.com/bid/93942 Broken Link
- http://www.securitytracker.com/id/1037142 Broken Link
- http://www.securitytracker.com/id/1038757 Broken Link
- https://access.redhat.com/errata/RHSA-2017:0455 Third Party Advisory
- https://access.redhat.com/errata/RHSA-2017:0456 Third Party Advisory
- https://access.redhat.com/errata/RHSA-2017:1548 Third Party Advisory
- https://access.redhat.com/errata/RHSA-2017:1549 Third Party Advisory
- https://access.redhat.com/errata/RHSA-2017:1550 Third Party Advisory
- https://access.redhat.com/errata/RHSA-2017:1552 Third Party Advisory
- https://access.redhat.com/errata/RHSA-2017:2247 Third Party Advisory
- https://lists.apache.org/thread.html/343558d982879bf88ec20dbf707f8c11255f8e219e81d45c4f8d0551%40%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/37220405a377c0182d2afdbc36461c4783b2930fbeae3a17f1333113%40%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/388a323769f1dff84c9ec905455aa73fbcb20338e3c7eb131457f708%40%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/39ae1f0bd5867c15755a6f959b271ade1aea04ccdc3b2e639dcd903b%40%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/3d19773b4cf0377db62d1e9328bf9160bf1819f04f988315086931d7%40%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/845312a10aabbe2c499fca94003881d2c79fc993d85f34c1f5c77424%40%3Cdev.tomcat.apache.org%3E
Sources
Exploitation status from the CISA Known Exploited Vulnerabilities catalog. EPSS scores from FIRST. Descriptions, severity and references from the National Vulnerability Database. Open-source package versions from OSV (CC-BY 4.0). Text is shown as each source states it; Stackurity does not edit it. Check the vendor's advisory before acting.
This product uses data from the NVD API but is not endorsed or certified by the NVD.