CVE-2016-1240: Input Validation
It was reported that the Tomcat init script performed unsafe file handling, which could result in local privilege escalation.
Other sources
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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
redhat/hibernate4-eap6to a version that resolves this vulnerability.Fixed in 0:4.2.23-1.Final_redhat_1.1.ep6.el6 - Upgrade
Upgrade
redhat/jbcs-httpd24to a version that resolves this vulnerability.Fixed in 0:1-3.jbcs.el6 - Upgrade
Upgrade
redhat/jbcs-httpd24-apache-commons-daemonto a version that resolves this vulnerability.Fixed in 0:1.0.15-1.redhat_2.1.jbcs.el6 - Upgrade
Upgrade
redhat/jbcs-httpd24-apache-commons-daemon-jsvcto a version that resolves this vulnerability.Fixed in 1:1.0.15-17.redhat_2.jbcs.el6 - Upgrade
Upgrade
redhat/tomcat7to a version that resolves this vulnerability.Fixed in 0:7.0.70-16.ep7.el6 - Upgrade
Upgrade
redhat/tomcat8to a version that resolves this vulnerability.Fixed in 0:8.0.36-17.ep7.el6 - Upgrade
Upgrade
redhat/tomcat-nativeto a version that resolves this vulnerability.Fixed in 0:1.2.8-9.redhat_9.ep7.el6 - Upgrade
Upgrade
redhat/tomcat-vaultto a version that resolves this vulnerability.Fixed in 0:1.0.8-9.Final_redhat_2.1.ep7.el6 - Upgrade
Upgrade
redhat/hibernate4-eap6to a version that resolves this vulnerability.Fixed in 0:4.2.23-1.Final_redhat_1.1.ep6.el7 - Upgrade
Upgrade
redhat/jbcs-httpd24to a version that resolves this vulnerability.Fixed in 0:1-3.jbcs.el7 - Upgrade
Upgrade
redhat/jbcs-httpd24-apache-commons-daemonto a version that resolves this vulnerability.Fixed in 0:1.0.15-1.redhat_2.1.jbcs.el7 - Upgrade
Upgrade
redhat/jbcs-httpd24-apache-commons-daemon-jsvcto a version that resolves this vulnerability.Fixed in 1:1.0.15-17.redhat_2.jbcs.el7 - Upgrade
Upgrade
redhat/tomcat7to a version that resolves this vulnerability.Fixed in 0:7.0.70-16.ep7.el7 - Upgrade
Upgrade
redhat/tomcat8to a version that resolves this vulnerability.Fixed in 0:8.0.36-17.ep7.el7 - Upgrade
Upgrade
redhat/tomcat-nativeto a version that resolves this vulnerability.Fixed in 0:1.2.8-9.redhat_9.ep7.el7 - Upgrade
Upgrade
redhat/tomcat-vaultto a version that resolves this vulnerability.Fixed in 0:1.0.8-9.Final_redhat_2.1.ep7.el7
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is the severity of CVE-2016-1240?
CVE-2016-1240 is classified with high severity due to the potential for root privilege escalation.
How do I fix CVE-2016-1240?
To fix CVE-2016-1240, update the affected Tomcat packages to the latest versions provided by your distribution.
Which versions of Tomcat are affected by CVE-2016-1240?
CVE-2016-1240 affects Tomcat versions before 6.0.35, 7.0.56, and 8.0.14.
What platforms are impacted by CVE-2016-1240?
CVE-2016-1240 impacts Debian Jessie and Ubuntu 12.04 LTS, among others.
Is CVE-2016-1240 an exploit in Tomcat's init script?
Yes, CVE-2016-1240 is a vulnerability in the Tomcat init script that allows for privilege escalation.