{"id":"CVE-2016-1240","published":"2016-10-03T00:00:00Z","modified":"2024-08-05T22:48:13Z","title":"The Tomcat init script in the tomcat7 package before 7.0.56-3+deb8u4 and tomcat8 package before 8.0.14-1+deb8u3 on…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.09783,"percentile":0.95653,"provenance":"source"},"cwes":[],"references":[{"url":"http://www.securitytracker.com/id/1036845","tags":["vdb-entry"]},{"url":"http://www.debian.org/security/2016/dsa-3670","tags":["vendor-advisory"]},{"url":"https://security.gentoo.org/glsa/201705-09","tags":["vendor-advisory"]},{"url":"http://legalhackers.com/advisories/Tomcat-DebPkgs-Root-Privilege-Escalation-Exploit-CVE-2016-1240.html","tags":[]},{"url":"http://www.securityfocus.com/bid/93263","tags":["vdb-entry"]},{"url":"http://rhn.redhat.com/errata/RHSA-2017-0457.html","tags":["vendor-advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20180731-0002/","tags":[]},{"url":"https://www.exploit-db.com/exploits/40450/","tags":["exploit"]},{"url":"http://www.debian.org/security/2016/dsa-3669","tags":["vendor-advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2017:0455","tags":["vendor-advisory"]},{"url":"http://www.securityfocus.com/archive/1/539519/100/0/threaded","tags":["mailing-list"]},{"url":"https://access.redhat.com/errata/RHSA-2017:0456","tags":["vendor-advisory"]},{"url":"http://www.ubuntu.com/usn/USN-3081-1","tags":["vendor-advisory"]},{"url":"http://packetstormsecurity.com/files/170857/Apache-Tomcat-On-Ubuntu-Log-Init-Privilege-Escalation.html","tags":[]}],"priority":{"score":24.1,"factors":[{"name":"EPSS percentile","points":19.13},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"exploitdb":{"count":1,"earliest":"2016-10-03"},"pocGithub":{"count":2,"skipped":0,"earliest":"2016-10-13","earliestUrl":"https://github.com/Naramsim/Offensive","repos":[{"name":"Naramsim/Offensive","url":"https://github.com/Naramsim/Offensive","stars":1,"created":"2016-10-13"},{"name":"mhe18/CVE_Project","url":"https://github.com/mhe18/CVE_Project","stars":0,"created":"2018-12-02"}]},"metasploit":[{"name":"Apache Tomcat on Ubuntu Log Init Privilege Escalation","module":"exploit/linux/local/tomcat_ubuntu_log_init_priv_esc","type":"exploit","disclosureDate":"2016-09-30","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/local/tomcat_ubuntu_log_init_priv_esc.rb"}],"first":{"date":"2016-09-30","source":"Metasploit","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/local/tomcat_ubuntu_log_init_priv_esc.rb"},"provenance":"source"},"summary":{"text":"The Tomcat init script in the tomcat7 and tomcat8 packages on Debian and the tomcat6, tomcat7, and tomcat8 packages on Ubuntu contains a flaw in how it handles the Catalina log file. Local users who have access to the tomcat account can exploit this through a symlink attack on that log file to gain root privileges.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:54:00Z"},"euvd":{"id":"EUVD-2016-2341","exploited":false,"provenance":"source"},"exploits":[{"id":40450,"url":"https://www.exploit-db.com/exploits/40450","title":"Apache Tomcat 8/7/6 (Debian-Based Distros) - Local Privilege Escalation","date":"2016-10-03","verified":true,"provenance":"source"}],"exploitRefs":["https://www.exploit-db.com/exploits/40450/","http://packetstormsecurity.com/files/170857/Apache-Tomcat-On-Ubuntu-Log-Init-Privilege-Escalation.html"]}