CVE-2017-12616: Apache Tomcat Exposure Of Sensitive Information To Vulnerability

HIGH
Advisory Identifier: GHSA-8qq4-8jvq-mfw4
CVSS 7.5
CWE-200
Published
Advisory Summary

CVE-2017-12616 is a HIGH (CVSS 7.5) exposure of sensitive information to vulnerability (CWE-200: Exposure of Sensitive Information to an Unauthorized Actor) affecting Apache Tomcat libraries in the Maven ecosystem. The issue involves exposure of sensitive information to an unauthorized actor in apache tomcat. Remediation is available by upgrading affected packages to version 7.0.81.

CVE-2017-12616 at a Glance

CVE Identifier CVE-2017-12616
GHSA Identifier GHSA-8qq4-8jvq-mfw4
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-200: Exposure of Sensitive Information to an Unauthorized Actor
Affected Product Apache Tomcat
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity None (I:N)
Availability None (A:N)

How to Fix CVE-2017-12616

To remediate this vulnerability, upgrade all affected Apache Tomcat dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.apache.tomcat:tomcat-catalina fixed: 7.0.81
<dependency>
    <groupId>org.apache.tomcat</groupId>
    <artifactId>tomcat-catalina</artifactId>
    <version>7.0.81</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.apache.tomcat

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2017-12616, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.apache.tomcat

Analyze the terminal output to locate any version of Apache Tomcat in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 7.0.81), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.apache.tomcat command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor, where the product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. In Apache Tomcat, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2017-12616 Affected Apache Tomcat Versions

1 component(s)
Fixed Versions:
7.0.81
Product / Package Ecosystem Affected Versions Fixed Version
org.apache.tomcat:tomcat-catalina
Maven
≥ 7.0.0
< 7.0.81
7.0.81

References

NVD — CVE-2017-12616 NVD
https://nvd.nist.gov/vuln/detail/CVE-2017-12616
access.redhat.com/errata/rhsa-2018:04... WEB
https://access.redhat.com/errata/RHSA-2018:0465
access.redhat.com/errata/rhsa-2018:04... WEB
https://access.redhat.com/errata/RHSA-2018:0466
Apache Tomcat Source Repository REPOSITORY
https://github.com/apache/tomcat
lists.apache.org/thread.html/1df9b45... WEB
https://lists.apache.org/thread.html/1df9b4552464caa42047062fe7175da0da06c18ecc8daf99258bbda6@%3Cannounce.tomcat.apache.org%3E
lists.apache.org/thread.html/388a323... WEB
https://lists.apache.org/thread.html/388a323769f1dff84c9ec905455aa73fbcb20338e3c7eb131457f708@%3Cdev.tomcat.apache.org%3E
lists.apache.org/thread.html/3d19773... WEB
https://lists.apache.org/thread.html/3d19773b4cf0377db62d1e9328bf9160bf1819f04f988315086931d7@%3Cdev.tomcat.apache.org%3E
lists.apache.org/thread.html/845312a... WEB
https://lists.apache.org/thread.html/845312a10aabbe2c499fca94003881d2c79fc993d85f34c1f5c77424@%3Cdev.tomcat.apache.org%3E
lists.apache.org/thread.html/r9136ff... WEB
https://lists.apache.org/thread.html/r9136ff5b13e4f1941360b5a309efee2c114a14855578c3a2cbe5d19c@%3Cdev.tomcat.apache.org%3E
lists.debian.org/debian-lts-announce... WEB
https://lists.debian.org/debian-lts-announce/2018/06/msg00008.html
Apache Tomcat Security Information SECURITY
https://security.netapp.com/advisory/ntap-20171018-0001
support.hpe.com/hpsc/doc/public/dis... WEB
https://support.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbux03828en_us
usn.ubuntu.com/3665-1 WEB
https://usn.ubuntu.com/3665-1
Apache Tomcat Security Information SECURITY
https://www.synology.com/support/security/Synology_SA_17_54_Tomcat

Frequently Asked Questions

What is CVE-2017-12616?
CVE-2017-12616 is a security vulnerability in Apache Tomcat involving Exposure of Sensitive Information to an Unauthorized Actor in Apache Tomcat under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor.
Which Apache Tomcat versions are affected?
Affected versions include releases prior to 7.0.81 across affected packages: org.apache.tomcat:tomcat-catalina.
What version fixes CVE-2017-12616?
Upgrading to 7.0.81 (or the latest patched release for your respective branch) resolves the vulnerability.
Is tomcat-catalina affected?
Yes, org.apache.tomcat:tomcat-catalina is affected in releases prior to 7.0.81. Upgrade your dependency to 7.0.81 or later.
What is the CVSS score of CVE-2017-12616?
CVE-2017-12616 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
What CWE is associated with CVE-2017-12616?
CVE-2017-12616 is classified under CWE-200: Exposure of Sensitive Information to an Unauthorized Actor (The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.).
How can I check Maven dependencies for CVE-2017-12616?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.apache.tomcat'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-8qq4-8jvq-mfw4",
  "modified" : "2022-07-01T21:20:58Z",
  "published" : "2022-05-14T01:10:16Z",
  "aliases" : [ "CVE-2017-12616" ],
  "summary" : "Exposure of Sensitive Information to an Unauthorized Actor in Apache Tomcat",
  "details" : "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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.apache.tomcat:tomcat-catalina"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "7.0.0"
      }, {
        "fixed" : "7.0.81"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 7.0.80"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2017-12616"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2018:0465"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2018:0466"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/apache/tomcat"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/1df9b4552464caa42047062fe7175da0da06c18ecc8daf99258bbda6@%3Cannounce.tomcat.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/388a323769f1dff84c9ec905455aa73fbcb20338e3c7eb131457f708@%3Cdev.tomcat.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/3d19773b4cf0377db62d1e9328bf9160bf1819f04f988315086931d7@%3Cdev.tomcat.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/845312a10aabbe2c499fca94003881d2c79fc993d85f34c1f5c77424@%3Cdev.tomcat.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.apache.org/thread.html/r9136ff5b13e4f1941360b5a309efee2c114a14855578c3a2cbe5d19c@%3Cdev.tomcat.apache.org%3E"
  }, {
    "type" : "WEB",
    "url" : "https://lists.debian.org/debian-lts-announce/2018/06/msg00008.html"
  }, {
    "type" : "WEB",
    "url" : "https://security.netapp.com/advisory/ntap-20171018-0001"
  }, {
    "type" : "WEB",
    "url" : "https://support.hpe.com/hpsc/doc/public/display?docLocale=en_US&docId=emr_na-hpesbux03828en_us"
  }, {
    "type" : "WEB",
    "url" : "https://usn.ubuntu.com/3665-1"
  }, {
    "type" : "WEB",
    "url" : "https://www.synology.com/support/security/Synology_SA_17_54_Tomcat"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-200" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-07-01T21:20:58Z",
    "nvd_published_at" : "2017-09-19T13:29:00Z"
  }
}