WaratekVRT Sign in

CVE-2016-1240 Tomcat

Affected softwareTomcat
Severity7.8 High CVSS 3.0 2 scores
WeaknessImproper input validation (CWE-20)
Published3 Oct 2016
Updated17 Jun 2026

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.

Exploitation status

Working exploit published

A reviewed exploit catalogue lists ready-to-run exploit code for this CVE.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment no assessment published
  • Indexed PoC 4 indexed Published artifacts you can open, in Exploit-DB, GitHub PoC, Metasploit; first seen 2016-10-03.
  • EPSS 9.8% chance in 30 days

2 of these are GitHub repositories with fewer than 5 stars. They are listed for reference and don't count toward the exploitation status above.

IndexArtifactStarsFirst seen
GitHub PoC Reproducible exploits for: CVE-2016-1240 CVE-2008-2938 CVE-2014-2064 CVE-2014-1904 1 2016-10-13
GitHub PoC CVE-2016-1240 exploit and patch 2018-12-02
Exploit-DB Apache Tomcat 8/7/6 (Debian-Based Distros) - Local Privilege Escalation 2016-10-03
Metasploit Apache Tomcat on Ubuntu Log Init Privilege Escalation (manual rank)

Waratek protection

Mitigation candidate

A kind of vulnerability Waratek's rules address, with exploit code published or exploitation reported. No rule exists and none is planned yet. The decision below says what we found to build a rule from.

  • Protection none
  • Action unverified
  • Review automated Inferred
  • Record active
Decided by An indexed exploit clearing the evidence bar to reverse-engineer, where there is no source to read
Finding Mitigation candidate: 4 public proof-of-concept exploit(s) are indexed for this CVE (exploit-db, github-poc, metasploit), but the affected code is not open source. That makes an ARMR patch rule a candidate rather than a plan. The exploit gives a reproducible entry point to trace inward from and a test to validate a hook against, which is what makes reverse engineering tractable at all. No rule exists and none is scheduled: the hook point must be recovered by decompiling the affected code, and a closer look may find none that ARMR can act on.

CVSS

7.8 HIGH v3.0 CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H 2 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.0 7.8 HIGH CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H NVD Primary published
CVSS 2.0 7.2 none AV:L/AC:L/Au:N/C:C/I:C/A:C NVD Primary

Affected software and releases

Products and versions

1 product, 3 version entries
SourceVendorProductSchemeAffected versions
nvd apache tomcat generic 6.0 · 7.0 · 8.0

References

URLTags
http://legalhackers.com/advisories/Tomcat-DebPkgs-Root-Privilege-Escalation-Exploit-CVE-2016-1240.html
http://packetstormsecurity.com/files/170857/Apache-Tomcat-On-Ubuntu-Log-Init-Privilege-Escalation.html
http://rhn.redhat.com/errata/RHSA-2017-0457.html
http://www.debian.org/security/2016/dsa-3669 Third Party Advisory
http://www.debian.org/security/2016/dsa-3670 Third Party Advisory
http://www.securityfocus.com/archive/1/539519/100/0/threaded
http://www.securityfocus.com/bid/93263
http://www.securitytracker.com/id/1036845 Third Party Advisory, VDB Entry
http://www.ubuntu.com/usn/USN-3081-1 Third Party Advisory
https://access.redhat.com/errata/RHSA-2017:0455

Timeline

Published2016-10-03By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.