CVE-2017-12616
When using a VirtualDirContext with Apache Tomcat 7.0.0 to 7.0.80 it was possible to bypass security constraints and/or view the source code of JSPs for resources served by the VirtualDirContext using a specially crafted request.
What to do
Likely to be exploited: EPSS gives a 70% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Fixed builds are available from Maven, 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 18.04 | tomcat7 | Fix pending | UBUNTU-CVE-2017-12616 | |
| Ubuntu 16.04 | tomcat7 | Will not fix this commit is included in commit list for CVE-2017-12617 package tomcat7 does not build affected binaries in Bionic. | 7.0.68-1ubuntu0.4+esm3 (Ubuntu Pro) | UBUNTU-CVE-2017-12616 |
| Ubuntu 16.04 | tomcat8 | Not affected vulnerable_code_not_present | ||
| Ubuntu 14.04 | tomcat7 | Fixed | 7.0.52-1ubuntu0.14 | UBUNTU-CVE-2017-12616 |
| Red Hat Enterprise Linux 7 | tomcat | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | tomcat-admin-webapps | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | tomcat-docs-webapp | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | tomcat-el-2.2-api | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | tomcat-javadoc | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | tomcat-jsp-2.2-api | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | tomcat-jsvc | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | tomcat-lib | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | tomcat-servlet-3.0-api | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 7 | tomcat-webapps | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | tomcat6 | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | tomcat6-admin-webapps | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | tomcat6-docs-webapp | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | tomcat6-el-2.1-api | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | tomcat6-javadoc | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | tomcat6-jsp-2.1-api | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | tomcat6-lib | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | tomcat6-log4j | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | tomcat6-servlet-2.5-api | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 6 | tomcat6-webapps | Will not fix Will not fix | ||
| Red Hat Enterprise Linux 5 | tomcat5 | Not affected | ||
| Maven library | org.apache.tomcat:tomcat-catalina | Fixed | 7.0.81 | GHSA-8qq4-8jvq-mfw4 |
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: 7.0.0 to 7.0.80
Vendor advisories:
- https://access.redhat.com/errata/RHSA-2018:0465 (vendor-advisory)
- https://usn.ubuntu.com/3665-1/ (vendor-advisory)
- https://access.redhat.com/errata/RHSA-2018:0466 (vendor-advisory)
References
- http://www.securitytracker.com/id/1039393
- https://support.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbux03828en_us
- https://www.synology.com/support/security/Synology_SA_17_54_Tomcat
- https://access.redhat.com/errata/RHSA-2018:0465
- https://usn.ubuntu.com/3665-1/
- http://www.securityfocus.com/bid/100897
- https://access.redhat.com/errata/RHSA-2018:0466
- https://security.netapp.com/advisory/ntap-20171018-0001/
- https://lists.apache.org/thread.html/1df9b4552464caa42047062fe7175da0da06c18ecc8daf99258bbda6%40%3Cannounce.tomcat.apache.org%3E
- https://lists.debian.org/debian-lts-announce/2018/06/msg00008.html
- https://lists.apache.org/thread.html/388a323769f1dff84c9ec905455aa73fbcb20338e3c7eb131457f708%40%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/845312a10aabbe2c499fca94003881d2c79fc993d85f34c1f5c77424%40%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/3d19773b4cf0377db62d1e9328bf9160bf1819f04f988315086931d7%40%3Cdev.tomcat.apache.org%3E
- https://lists.apache.org/thread.html/r9136ff5b13e4f1941360b5a309efee2c114a14855578c3a2cbe5d19c%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.