CVE-2016-8745
A bug in the error handling of the send file code for the NIO HTTP connector in Apache Tomcat 9.0.0.M1 to 9.0.0.M13, 8.5.0 to 8.5.8, 8.0.0.RC1 to 8.0.39, 7.0.0 to 7.0.73 and 6.0.16 to 6.0.48 resulted in the current Processor object being added to the Processor cache multiple times. This in turn meant that the same Processor could be used for concurrent requests. Sharing a Processor can result in information leakage between requests including, not not limited to, session ID and the response body. The bug was first noticed in 8.5.x onwards where it appears the refactoring of the Connector code for 8.5.x onwards made it more likely that the bug was observed. Initially it was thought that the 8.5.x refactoring introduced the bug but further investigation has shown that the bug is present in all currently supported Tomcat versions.
What to do
Likely to be exploited: EPSS gives a 16% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Fixed builds are available from Maven, Red Hat, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 16.04 | tomcat6 | Fix pending | ||
| Ubuntu 16.04 | tomcat7 | Fixed | 7.0.68-1ubuntu0.3 | UBUNTU-CVE-2016-8745 |
| Ubuntu 16.04 | tomcat8 | Fixed | 8.0.32-1ubuntu1.3 | UBUNTU-CVE-2016-8745 |
| Ubuntu 14.04 | tomcat6 | Fix pending | UBUNTU-CVE-2016-8745 | |
| Ubuntu 14.04 | tomcat7 | Fixed | 7.0.52-1ubuntu0.8 | UBUNTU-CVE-2016-8745 |
| Red Hat Enterprise Linux 7 | tomcat | Fixed | 0:7.0.69-11.el7_3 | RHSA-2017:0935 |
| Red Hat Enterprise Linux 7 | tomcat-admin-webapps | Fixed | 0:7.0.69-11.el7_3 | RHSA-2017:0935 |
| Red Hat Enterprise Linux 7 | tomcat-docs-webapp | Fixed | 0:7.0.69-11.el7_3 | RHSA-2017:0935 |
| Red Hat Enterprise Linux 7 | tomcat-el-2.2-api | Fixed | 0:7.0.69-11.el7_3 | RHSA-2017:0935 |
| Red Hat Enterprise Linux 7 | tomcat-javadoc | Fixed | 0:7.0.69-11.el7_3 | RHSA-2017:0935 |
| Red Hat Enterprise Linux 7 | tomcat-jsp-2.2-api | Fixed | 0:7.0.69-11.el7_3 | RHSA-2017:0935 |
| Red Hat Enterprise Linux 7 | tomcat-jsvc | Fixed | 0:7.0.69-11.el7_3 | RHSA-2017:0935 |
| Red Hat Enterprise Linux 7 | tomcat-lib | Fixed | 0:7.0.69-11.el7_3 | RHSA-2017:0935 |
| Red Hat Enterprise Linux 7 | tomcat-servlet-3.0-api | Fixed | 0:7.0.69-11.el7_3 | RHSA-2017:0935 |
| Red Hat Enterprise Linux 7 | tomcat-webapps | Fixed | 0:7.0.69-11.el7_3 | RHSA-2017:0935 |
| Red Hat Enterprise Linux 6 | tomcat6 | Fixed | 0:6.0.24-105.el6_8 | RHSA-2017:0527 |
| Red Hat Enterprise Linux 6 | tomcat6-admin-webapps | Fixed | 0:6.0.24-105.el6_8 | RHSA-2017:0527 |
| Red Hat Enterprise Linux 6 | tomcat6-docs-webapp | Fixed | 0:6.0.24-105.el6_8 | RHSA-2017:0527 |
| Red Hat Enterprise Linux 6 | tomcat6-el-2.1-api | Fixed | 0:6.0.24-105.el6_8 | RHSA-2017:0527 |
| Red Hat Enterprise Linux 6 | tomcat6-javadoc | Fixed | 0:6.0.24-105.el6_8 | RHSA-2017:0527 |
| Red Hat Enterprise Linux 6 | tomcat6-jsp-2.1-api | Fixed | 0:6.0.24-105.el6_8 | RHSA-2017:0527 |
| Red Hat Enterprise Linux 6 | tomcat6-lib | Fixed | 0:6.0.24-105.el6_8 | RHSA-2017:0527 |
| Red Hat Enterprise Linux 6 | tomcat6-servlet-2.5-api | Fixed | 0:6.0.24-105.el6_8 | RHSA-2017:0527 |
| Red Hat Enterprise Linux 6 | tomcat6-webapps | Fixed | 0:6.0.24-105.el6_8 | RHSA-2017:0527 |
| Red Hat Enterprise Linux 5 | tomcat5 | Not affected | ||
| Maven library | org.apache.tomcat:tomcat-util | Fixed | 9.0.0.M14 | GHSA-w3j5-q8f2-3cqq |
What the vendor says
As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Apache Software Foundation Apache Tomcat: affected: 9.0.0.M1 to 9.0.0.M13, 8.5.0 to 8.5.8, 8.0.0.RC1 to 8.0.39, 7.0.0 to 7.0.73, 6.0.16 to 6.0.48
Vendor advisories:
- https://security.gentoo.org/glsa/201705-09 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2017:0935 (vendor-advisory)
- http://www.debian.org/security/2017/dsa-3754 (vendor-advisory)
- http://rhn.redhat.com/errata/RHSA-2017-0457.html (vendor-advisory)
- http://www.debian.org/security/2017/dsa-3755 (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2017:0455 (vendor-advisory)
References
- http://www.securityfocus.com/bid/94828
- http://www.securitytracker.com/id/1037432
- https://security.gentoo.org/glsa/201705-09
- http://www.oracle.com/technetwork/security-advisory/cpuoct2017-3236626.html
- https://security.netapp.com/advisory/ntap-20180607-0002/
- http://www.oracle.com/technetwork/security-advisory/cpuapr2018-3678067.html
- https://access.redhat.com/errata/RHSA-2017:0935
- http://www.debian.org/security/2017/dsa-3754
- http://rhn.redhat.com/errata/RHSA-2017-0457.html
- http://www.debian.org/security/2017/dsa-3755
- https://access.redhat.com/errata/RHSA-2017:0455
- http://rhn.redhat.com/errata/RHSA-2017-0527.html
- https://access.redhat.com/errata/RHSA-2017:0456
- https://lists.apache.org/thread.html/4113c05d37f37c12b8033205684f04033c5f7a9bae117d4af23b32b4%40%3Cannounce.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/343558d982879bf88ec20dbf707f8c11255f8e219e81d45c4f8d0551%40%3Cdev.tomcat.apache.org%3E
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.