The Tomcat init script in the tomcat7 package before 7.0.56-3+deb8u4 and tomcat8 package before 8.0.14-1+deb8u3 on Debian jessie and the tomcat6 and libtomcat6-java packages before 6.0.35-1ubuntu3.8 on Ubuntu 12.04 LTS, the tomcat7 and libtomcat7-java packages before 7.0.52-1ubuntu0.7 on Ubuntu 14.04 LTS, and tomcat8 and libtomcat8-java packages before 8.0.32-1ubuntu1.2 on Ubuntu 16.04 LTS allows local users with access to the tomcat account to gain root privileges via a symlink attack on the Catalina log file, as demonstrated by /var/log/tomcat7/catalina.out.
CVE-2016-1240
Score 7.8 from GitHub Security Advisory (severity: HIGH) published 2022-05-14. NVD baseline CVSS 7.8; sources differ by 0.0.
- Public exploit code is available (Metasploit, Exploit-DB (verified), epss top5pct, public exploit)
A fix is available — apply it.
- CVSS v3
- 7.8
- EG Score
- 7.8(medium)
- EG Risk
- 66(Track)EG Risk 66/100SSVC: Track
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity78% × 45%Exploitation65% × 40%Automatability30% × 15%Action: Routine — remediate on your standard cadence. - EPSS PROB
- 10%
- EPSS %ILE
- 95%
- KEV
- Not listed
Published
October 3, 2016
Last Modified
June 17, 2026
References (28)
- security@debianhttp://legalhackers.com/advisories/Tomcat-DebPkgs-Root-Privilege-Escalation-Exploit-CVE-2016-1240.html
- security@debianhttp://packetstormsecurity.com/files/170857/Apache-Tomcat-On-Ubuntu-Log-Init-Privilege-Escalation.html
- security@debianhttp://rhn.redhat.com/errata/RHSA-2017-0457.html
- security@debianhttp://www.debian.org/security/2016/dsa-3669
- security@debianhttp://www.debian.org/security/2016/dsa-3670
- security@debianhttp://www.securityfocus.com/archive/1/539519/100/0/threaded
- security@debianhttp://www.securityfocus.com/bid/93263
- security@debianhttp://www.securitytracker.com/id/1036845
- security@debianhttp://www.ubuntu.com/usn/USN-3081-1
- security@debianhttps://access.redhat.com/errata/RHSA-2017:0455
- security@debianhttps://access.redhat.com/errata/RHSA-2017:0456
- security@debianhttps://security.gentoo.org/glsa/201705-09
- security@debianhttps://security.netapp.com/advisory/ntap-20180731-0002/
- security@debianhttps://www.exploit-db.com/exploits/40450/
- af854a3a-2127-422b-91ae-364da2661108http://legalhackers.com/advisories/Tomcat-DebPkgs-Root-Privilege-Escalation-Exploit-CVE-2016-1240.html
Patch Availability(5)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| ubuntu | tomcat8-user (8.0.32-1ubuntu1.2) @ xenial | 2026-05-22 | ubuntu |
| ubuntu | libservlet2.5-java-doc (6.0.45+dfsg-1ubuntu0.2) @ xenial | 2026-05-22 | ubuntu |
| redhat | patch | 2017-03-07 | redhat |
| redhat | tomcat-vault-0:1.0.8-9.Final_redhat_2.1.ep7.el6 | 2017-03-07 | redhat |
| redhat | tomcat-vault-0:1.0.8-9.Final_redhat_2.1.ep7.el7 | 2017-03-07 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Affected Packages
(4 across 2 ecosystems)
Debian:7(2)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| tomcat6 | 6.0.35-6 ... 6.0.45-1~deb6u1 (14 versions) | 6.0.45+dfsg-1~deb7u2 | — |
| tomcat7 | 7.0.28-4 ... 7.0.28-4+deb7u5 (6 versions) | 7.0.28-4+deb7u6 | — |
Debian:8(2)
| Package | Vulnerable range | Fixed in | Dependents |
|---|---|---|---|
| tomcat7 | 7.0.56-3, 7.0.56-3+deb8u1, 7.0.56-3+deb8u2, 7.0.56-3+deb8u3 | 7.0.56-3+deb8u4 | — |
| tomcat8 | 8.0.14-1, 8.0.14-1+deb8u1, 8.0.14-1+deb8u2 | 8.0.14-1+deb8u3 | — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
All Vendor Advisories
(5)
Every vendor that published an advisory referencing this CVE — pulled from our cve_vendor_advisories aggregation. Click any row for the vendor's original advisory page.
Data Freshness Timeline
(refreshed 5× in last 7d / 19× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 137 total refreshes for this CVE.
- 2026-09-19 15:35 UTCEPSS rescore
- 2026-09-18 20:20 UTCOSV refresh
- 2026-09-18 19:22 UTCEPSS rescore
- 2026-09-17 19:21 UTCEPSS rescore
- 2026-09-15 03:05 UTCEPSS rescore
- 2026-09-13 16:41 UTCEPSS rescore
- 2026-09-12 14:55 UTCEPSS rescore
- 2026-09-10 09:26 UTCEPSS rescore
- 2026-09-07 15:56 UTCEPSS rescore
- 2026-09-04 13:56 UTCEPSS rescore
- 2026-09-02 14:07 UTCEPSS rescore
- 2026-09-01 03:31 UTCEPSS rescore
- 2026-08-30 23:23 UTCOSV refresh
- 2026-08-30 19:12 UTCEPSS rescore
- 2026-08-27 14:20 UTCEPSS rescore
- 2026-08-26 14:41 UTCEPSS rescore
- 2026-08-25 13:44 UTCEPSS rescore
- 2026-08-23 00:13 UTCEPSS rescore
- 2026-08-21 23:44 UTCEPSS rescore
- 2026-08-19 16:59 UTCEPSS rescore
- 2026-08-18 13:43 UTCEPSS rescore
- 2026-08-17 13:42 UTCEPSS rescore
- 2026-08-16 14:51 UTCEPSS rescore
- 2026-08-16 02:09 UTCEPSS rescore
- 2026-08-15 01:25 UTCEPSS rescore
Show 75 moreShow fewer
- 2026-08-14 09:29 UTCOSV refresh
- 2026-08-12 13:46 UTCEPSS rescore
- 2026-08-11 13:36 UTCEPSS rescore
- 2026-08-08 16:32 UTCEPSS rescore
- 2026-08-06 13:42 UTCEPSS rescore
- 2026-08-05 19:12 UTCEPSS rescore
- 2026-08-04 15:04 UTCEPSS rescore
- 2026-08-04 10:32 UTCEPSS rescore
- 2026-08-02 02:22 UTCEPSS rescore
- 2026-08-01 04:11 UTCEPSS rescore
- 2026-07-30 16:23 UTCEPSS rescore
- 2026-07-30 01:26 UTCEPSS rescore
- 2026-07-29 18:37 UTCOSV refresh
- 2026-07-28 15:31 UTCEPSS rescore
- 2026-07-26 14:50 UTCEPSS rescore
- 2026-07-25 14:13 UTCEPSS rescore
- 2026-07-23 14:14 UTCEPSS rescore
- 2026-07-23 01:21 UTCEG score recompute
- 2026-07-22 22:01 UTCEG score recompute
- 2026-07-22 14:04 UTCEPSS rescore
- 2026-07-21 15:21 UTCEPSS rescore
- 2026-07-21 15:21 UTCEPSS rescore
- 2026-07-20 17:03 UTCEPSS rescore
- 2026-07-19 14:27 UTCEPSS rescore
- 2026-07-19 02:26 UTCEPSS rescore
- 2026-07-19 02:26 UTCEPSS rescore
- 2026-07-18 10:00 UTCEPSS rescore
- 2026-07-18 10:00 UTCEPSS rescore
- 2026-07-16 16:59 UTCEPSS rescore
- 2026-07-16 16:59 UTCEPSS rescore
- 2026-07-15 16:54 UTCEPSS rescore
- 2026-07-15 16:54 UTCEPSS rescore
- 2026-07-15 01:56 UTCEPSS rescore
- 2026-07-15 01:56 UTCEPSS rescore
- 2026-07-13 22:26 UTCEPSS rescore
- 2026-07-12 07:08 UTCOSV refresh
- 2026-07-12 05:43 UTCEPSS rescore
- 2026-07-12 05:43 UTCEPSS rescore
- 2026-07-11 08:23 UTCEPSS rescore
- 2026-07-09 19:05 UTCEPSS rescore
- 2026-07-08 15:10 UTCEPSS rescore
- 2026-07-07 13:42 UTCEPSS rescore
- 2026-07-06 16:24 UTCEPSS rescore
- 2026-07-06 16:24 UTCEPSS rescore
- 2026-07-06 02:20 UTCEPSS rescore
- 2026-07-06 02:20 UTCEPSS rescore
- 2026-07-05 02:27 UTCEPSS rescore
- 2026-07-04 06:28 UTCEPSS rescore
- 2026-07-01 15:02 UTCEPSS rescore
- 2026-06-30 23:19 UTCEPSS rescore
- 2026-06-28 14:04 UTCEPSS rescore
- 2026-06-28 04:53 UTCEPSS rescore
- 2026-06-27 03:05 UTCEPSS rescore
- 2026-06-27 03:05 UTCEPSS rescore
- 2026-06-25 13:47 UTCEPSS rescore
- 2026-06-25 13:47 UTCEPSS rescore
- 2026-06-24 14:02 UTCEPSS rescore
- 2026-06-24 14:02 UTCEPSS rescore
- 2026-06-23 21:30 UTCEPSS rescore
- 2026-06-23 13:00 UTCOSV refresh
- 2026-06-22 14:23 UTCEPSS rescore
- 2026-06-21 14:54 UTCEPSS rescore
- 2026-06-21 14:54 UTCEPSS rescore
- 2026-06-19 19:23 UTCEPSS rescore
- 2026-06-19 19:23 UTCEPSS rescore
- 2026-06-18 17:50 UTCEPSS rescore
- 2026-06-17 17:50 UTCEPSS rescore
- 2026-06-17 17:50 UTCEPSS rescore
- 2026-06-16 17:50 UTCEPSS rescore
- 2026-06-16 17:50 UTCEPSS rescore
- 2026-06-15 17:45 UTCEPSS rescore
- 2026-06-14 23:14 UTCEPSS rescore
- 2026-06-13 22:57 UTCEPSS rescore
- 2026-06-13 22:57 UTCEPSS rescore
- 2026-06-12 23:09 UTCEPSS rescore
Publicly available exploits
(2 references)Working exploit code is in the public domain (1 Metasploit module) (1 Exploit-DB entry). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- Exploit-DBEDB-40450✓ verifiedFirst seen Oct 3, 2016
Apache Tomcat 8/7/6 (Debian-Based Distros) - Local Privilege Escalation
Open source ↗ - Metasploitexploit/linux/local/tomcat_ubuntu_log_init_priv_esc✓ verifiedFirst seen Sep 30, 2016
Apache Tomcat on Ubuntu Log Init Privilege Escalation
Open source ↗
Related CVEs(same vendor + same CWE)
Same vendor
10 shownredhat:RHSA-2017:0455
- CVE-2016-8735EG 9.8 KEVEPSS p100CRITICAL
- CVE-2016-5018EG 9.1EPSS p95CRITICAL
- CVE-2016-6325EG 7.8HIGH
- CVE-2016-3092NVD 7.5EG 7.7EPSS p98HIGH
- CVE-2016-6796EG 7.5EPSS p95HIGH
- CVE-2016-8745EG 7.5EPSS p97HIGH
- CVE-2016-6797EG 7.5EPSS p95HIGH
- CVE-2016-6816NVD 7.1EG 7.4EPSS p99HIGH
- CVE-2016-0762EG 5.9EPSS p94MEDIUM
- CVE-2016-6794EG 5.3EPSS p94MEDIUM
Same CWE
10 shownCWE-20
Frequently asked(5)
What is CVE-2016-1240?
When was CVE-2016-1240 disclosed?
Is CVE-2016-1240 actively exploited?
What is the CVSS score of CVE-2016-1240?
How do I remediate CVE-2016-1240?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2016-1240
Is Your Infrastructure Affected by CVE-2016-1240?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.