Skip to content
OpenAdvisories
Unscored Public exploit CVE-2016-1240 EUVD-2016-2341GHSA-8c5c-v572-37xf

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 to…

Published Oct 3, 2016 · Updated Aug 5, 2024 · Assigned by debian

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 8 tomcat7 7.0.56-3+deb8u4 DSA-3669-1
Debian 8 tomcat8 8.0.14-1+deb8u3 DSA-3670-1
Debian 7 tomcat6 6.0.45+dfsg-1~deb7u2 DLA-622-1
Debian 7 tomcat7 7.0.28-4+deb7u6 DLA-623-1
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS tomcat6 6.0.45+dfsg-1ubuntu0.2 USN-3081-2
Ubuntu 16.04 LTS tomcat7 7.0.68-1ubuntu0.3 —
Ubuntu 16.04 LTS tomcat8 8.0.32-1ubuntu1.2 USN-3081-1
Ubuntu 14.04 LTS tomcat6 6.0.39-1ubuntu0.1 —
Ubuntu 14.04 LTS tomcat7 7.0.52-1ubuntu0.7 USN-3081-1
ReleasePackageFixed inAdvisory
Red Hat JBoss Web Server 3 hibernate4-eap6 +4 4.2.23-1.Final_redhat_1.1.ep6.el6 RHSA-2017:0456, RHSA-2017:0455
Red Hat JBoss Web Server 3 jbcs-httpd24-apache-commons-daemon 1.0.15-1.redhat_2.1.jbcs.el6 RHSA-2017:0456, RHSA-2017:0455
Red Hat JBoss Web Server 3 jbcs-httpd24-apache-commons-daemon-jsvc 1:1.0.15-17.redhat_2.jbcs.el6 RHSA-2017:0456, RHSA-2017:0455
Red Hat JBoss Web Server 3 jbcs-httpd24-runtime 1-3.jbcs.el6 RHSA-2017:0456, RHSA-2017:0455
Red Hat JBoss Web Server 3 mod_cluster +2 1.3.5-2.Final_redhat_2.1.ep7.el6 RHSA-2017:0456, RHSA-2017:0455
Red Hat JBoss Web Server 3 tomcat-native 1.2.8-9.redhat_9.ep7.el6 RHSA-2017:0456, RHSA-2017:0455
Red Hat JBoss Web Server 3 tomcat-vault 1.0.8-9.Final_redhat_2.1.ep7.el6 RHSA-2017:0456, RHSA-2017:0455
Red Hat JBoss Web Server 3 tomcat7 +11 7.0.70-16.ep7.el6 RHSA-2017:0456, RHSA-2017:0455
Red Hat JBoss Web Server 3 tomcat8 +11 8.0.36-17.ep7.el6 RHSA-2017:0456, RHSA-2017:0455

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Metasploit 1 module

Exploit-DB 1

GitHub 2 repositories

  • Naramsim/Offensive ★ 1 · Oct 13, 2016

    Reproducible exploits for: CVE-2016-1240 CVE-2008-2938 CVE-2014-2064 CVE-2014-1904

  • mhe18/CVE_Project ★ 0 · Dec 2, 2018

    CVE-2016-1240 exploit and patch

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 8

References