← Vulnerability feed

Vulnerability record · CVE-2017-12616 · published 19 September 2017

CVE-2017-12616: Apache Tomcat VirtualDirContext security constraint bypass and JSP source disclosure

Apache · Tomcat

Apache Tomcat 7.0.0 through 7.0.80 fails to properly enforce security constraints when a VirtualDirContext is configured, allowing a specially crafted request to bypass those constraints and/or read the source code of JSPs served by that context. This matters because protected resources can be reached without authorization and JSP source may expose application logic or embedded secrets.

7.5 CVSS 3.0 High EPSS 70% · top 0.6% CWE-200 · Information exposure
7.5CVSS 3.0 base score, v2 5.0
70%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
28References
17 Jun 2026Last modified by NVD

Description

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.

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 19 September 2026. Confidence: medium.

high priorityCVSS 7.5 with network reachability, no authentication and high confidentiality impact, plus a very high EPSS score, though no KEV listing or known exploit tags.

What it is

Apache Tomcat 7.0.0 through 7.0.80 fails to properly enforce security constraints when a VirtualDirContext is configured, allowing a specially crafted request to bypass those constraints and/or read the source code of JSPs served by that context. This matters because protected resources can be reached without authorization and JSP source may expose application logic or embedded secrets.

Impact

An unauthenticated remote attacker can access resources that security constraints were meant to protect and can read JSP source code, gaining information that aids further attacks.

Attack surface

Reachable over the network via HTTP requests to a Tomcat instance that uses a VirtualDirContext; the CVSS vector shows no privileges and no user interaction required.

Exploitation

Not listed in CISA KEV and no ransomware usage documented, but EPSS is high at roughly 0.70 (99th percentile), indicating elevated likelihood of exploitation activity; references are advisories and vendor errata only, with no public exploit tags.

What to do

  • Upgrade Apache Tomcat to a version later than 7.0.80 that fixes this issue, or apply the vendor-supplied patch for your distribution.
  • If VirtualDirContext is not required, remove it from the Tomcat configuration to eliminate the vulnerable code path.
  • Apply the referenced Red Hat, Debian, Ubuntu, NetApp, HPE and Synology vendor updates where Tomcat is bundled.
  • Restrict network access to Tomcat HTTP/connector ports to trusted clients only.
  • Review security constraints on VirtualDirContext-served resources and confirm they are enforced after patching.

Detection

  • Search Tomcat access logs for requests to JSP paths under VirtualDirContext mappings that return 200 with unexpected content or unusual URL encodings.
  • Monitor for requests attempting path traversal or crafted encodings against JSP resources on Tomcat 7.0.x hosts.
  • Inventory Tomcat instances and flag any running 7.0.0 through 7.0.80 with VirtualDirContext configured.
  • Alert on access to JSP source files or protected paths that should require authentication.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://www.securityfocus.com/bid/100897 Third Party AdvisoryVDB Entry
http://www.securitytracker.com/id/1039393 Third Party AdvisoryVDB Entry
https://access.redhat.com/errata/RHSA-2018:0465
https://access.redhat.com/errata/RHSA-2018:0466
https://lists.apache.org/thread.html/1df9b4552464caa42047062fe7175da0da06c18ecc8daf99258bbda6%40%3Cannounce.tomcat.apach
https://lists.apache.org/thread.html/388a323769f1dff84c9ec905455aa73fbcb20338e3c7eb131457f708%40%3Cdev.tomcat.apache.org
https://lists.apache.org/thread.html/3d19773b4cf0377db62d1e9328bf9160bf1819f04f988315086931d7%40%3Cdev.tomcat.apache.org
https://lists.apache.org/thread.html/845312a10aabbe2c499fca94003881d2c79fc993d85f34c1f5c77424%40%3Cdev.tomcat.apache.org
https://lists.apache.org/thread.html/r9136ff5b13e4f1941360b5a309efee2c114a14855578c3a2cbe5d19c%40%3Cdev.tomcat.apache.or
https://lists.debian.org/debian-lts-announce/2018/06/msg00008.html
https://security.netapp.com/advisory/ntap-20171018-0001/
https://support.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbux03828en_us
https://usn.ubuntu.com/3665-1/
https://www.synology.com/support/security/Synology_SA_17_54_Tomcat
http://www.securityfocus.com/bid/100897 Third Party AdvisoryVDB Entry
http://www.securitytracker.com/id/1039393 Third Party AdvisoryVDB Entry
https://access.redhat.com/errata/RHSA-2018:0465
https://access.redhat.com/errata/RHSA-2018:0466
https://lists.apache.org/thread.html/1df9b4552464caa42047062fe7175da0da06c18ecc8daf99258bbda6%40%3Cannounce.tomcat.apach
https://lists.apache.org/thread.html/388a323769f1dff84c9ec905455aa73fbcb20338e3c7eb131457f708%40%3Cdev.tomcat.apache.org
https://lists.apache.org/thread.html/3d19773b4cf0377db62d1e9328bf9160bf1819f04f988315086931d7%40%3Cdev.tomcat.apache.org
https://lists.apache.org/thread.html/845312a10aabbe2c499fca94003881d2c79fc993d85f34c1f5c77424%40%3Cdev.tomcat.apache.org
https://lists.apache.org/thread.html/r9136ff5b13e4f1941360b5a309efee2c114a14855578c3a2cbe5d19c%40%3Cdev.tomcat.apache.or
https://lists.debian.org/debian-lts-announce/2018/06/msg00008.html
https://security.netapp.com/advisory/ntap-20171018-0001/
https://support.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbux03828en_us
https://usn.ubuntu.com/3665-1/
https://www.synology.com/support/security/Synology_SA_17_54_Tomcat

Track CVE-2017-12616 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2025-24813Apache Tomcat Default Servlet path equivalence enables RCE and file disclosureApache Tomcat mishandles path equivalence for names containing an internal dot, letting a remote unauthenticated attacker write files through the Def…KEVEPSS 100%analysed9.8CVE-2020-1938Apache Tomcat AJP connector file read and JSP execution flawApache Tomcat shipped an AJP Connector enabled by default that listened on all configured IP addresses, and Tomcat treats AJP connections as more tru…KEVEPSS 99%analysed9.8CVE-2016-8735Apache Tomcat JmxRemoteLifecycleListener remote code executionApache Tomcat's JmxRemoteLifecycleListener was not updated to match the Oracle CVE-2016-3427 credential-type fix, leaving a deserialization weakness …KEVEPSS 90%analysed8.1CVE-2017-12617Apache Tomcat Default Servlet JSP upload leads to remote code executionApache Tomcat with HTTP PUT enabled (for example, the Default servlet readonly parameter set to false) allows an attacker to upload a JSP file throug…KEVEPSS 100%analysed8.1CVE-2017-12615Apache Tomcat on Windows unrestricted JSP upload via HTTP PUTApache Tomcat 7.0.0 through 7.0.79 on Windows with HTTP PUT enabled (for example, Default servlet readonly set to false) allows an attacker to upload…KEVEPSS 100%analysed7.5CVE-2026-34486Apache Tomcat EncryptInterceptor bypass exposes sensitive dataApache Tomcat contains a missing encryption of sensitive data flaw: the fix for CVE-2026-29146 can be bypassed, allowing the EncryptInterceptor to be…KEVEPSS 6.6%analysed7.5CVE-2023-44487HTTP/2 Rapid Reset stream cancellation denial of serviceThe HTTP/2 protocol permits a client to cancel many streams quickly, and the server's handling of those resets consumes disproportionate resources. T…KEVEPSS 100%analysed9.8CVE-2026-65637Apache tomcat improper input validation vulnerabilityImproper Input Validation vulnerability in Apache Tomcat due to incomplete fix for CVE-2026-32990. This issue affects Apache Tomcat: from 11.0.20 thr…EPSS 0.74%

Source: NIST National Vulnerability Database (record CVE-2017-12616), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.