Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2016-1240: Apache Tomcat Init Script Symlink Privilege Escalation

Published Oct 3, 2016 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.8High · v3
EPSS9.8%96th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendor
Apache Software Foundation
IdentifiersCVE-2016-1240CWE-59

CVE-2016-1240 is a local privilege-escalation vulnerability in distribution-packaged Apache Tomcat init scripts. The scripts performed a root-privileged ownership change on the Catalina log without safely preventing symbolic-link substitution. A user controlling the Tomcat service account could replace the log with a symbolic link to an arbitrary filesystem target. When Tomcat was restarted or the system rebooted, the privileged init script could change ownership of the linked target to the Tomcat account. Affected packages include Debian Jessie tomcat7 before 7.0.56-3+deb8u4 and tomcat8 before 8.0.14-1+deb8u3; Ubuntu 12.04 tomcat6 and libtomcat6-java before 6.0.35-1ubuntu3.8; Ubuntu 14.04 tomcat7 and libtomcat7-java before 7.0.52-1ubuntu0.7; and Ubuntu 16.04 tomcat8 and libtomcat8-java before 8.0.32-1ubuntu1.2.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation permits a local attacker operating as the Tomcat service account to obtain root privileges by gaining control of a security-sensitive file that is subsequently consumed by a root-executed process or job. This can result in complete compromise of system confidentiality, integrity, and availability.

Mitigation

If you can’t patch tonight, do this now.

Until patches are applied, prevent untrusted users and deployed applications from obtaining execution as, or write access available to, the Tomcat service account. Restrict write permissions on Tomcat log directories and service-managed files, monitor for unexpected symbolic links and ownership changes in those locations, and limit unprivileged ability to stop or trigger restart of the Tomcat service. Prefer service-management configurations that do not perform root-level ownership changes on files writable or replaceable by the Tomcat account.

Remediation

Patch, then assume compromise.

Install the corrected Tomcat packages supplied by the operating-system vendor. For affected Debian systems, update tomcat7 to at least 7.0.56-3+deb8u4 or tomcat8 to at least 8.0.14-1+deb8u3. For Ubuntu, apply the vendor updates for the affected release streams: Tomcat 6 on 12.04 LTS, Tomcat 7 on 14.04 LTS, and Tomcat 8 on 16.04 LTS. Apply the corresponding supported Red Hat JBoss Web Server updates where applicable, including JBoss Web Server 3.1.0 updates. Restart services as required after patching.

Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
Apache Software FoundationTomcatapplication
FAQ

Frequently asked questions

Is CVE-2016-1240 exploited in the wild?
As of Oct 16, 2026, Mallory has no reports of CVE-2016-1240 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2016-1240?
Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2016-1240, the earliest disclosed Sep 30, 2016.
Is there a patch for CVE-2016-1240?
Install the corrected Tomcat packages supplied by the operating-system vendor. For affected Debian systems, update tomcat7 to at least 7.0.56-3+deb8u4 or tomcat8 to at least 8.0.14-1+deb8u3.
What products are affected by CVE-2016-1240?
Apache Software Foundation Tomcat.
How severe is CVE-2016-1240?
CVE-2016-1240 has a CVSS v3 score of 7.8 (High) and an EPSS score of 9.8% (96th percentile) as of Oct 16, 2026.
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activityCommunity discussion across Reddit, Mastodon, and other social sources.