CVE-2016-1240

high
Published 2016-10-03 ยท Modified 2026-05-06
CVSS v3
7.8
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
8.8

Description

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.

Predictions

Exploit likelihood
75%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

Exploits

Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.

Exploit-DB

EDB-40450 local linux verified
Dawid Golunski ยท 2016-10-03

Apache Tomcat 8/7/6 (Debian-Based Distros) - Local Privilege Escalation

Source code queued for fetch โ€” refresh in a moment.

Metasploit modules

Apache Tomcat on Ubuntu Log Init Privilege Escalation
Source fetch failed: fetch_error โ€” view the original via the link above.

OS impact

debian Debian Fixed 1 release
VersionStatusFixed in
8.0 Not affected โ€”
ubuntu Ubuntu Fixed 3 releases
VersionStatusFixed in
16.04 Not affected โ€”
14.04 Not affected โ€”
12.04 Not affected โ€”

Application impact

VendorProductVersionsFixed
apache apachetomcat6.0
apache apachetomcat7.0
apache apachetomcat8.0

References

CWEs

CWE-20

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.