CVE-2016-6797: High severity Apache Tomcat vulnerability

Published Nov 1, 2016
·
Updated

The following flaw was reported in Tomcat:

The ResourceLinkFactory did not limit web application access to global JNDI resources to those resources explicitly linked to the web application. Therefore, it was possible for a web application to access any global JNDI resource whether an explicit ResourceLink had been configured or not.

Upstream patches:

6.0.47: https://svn.apache.org/viewvc?view=revision&revision=1757285 7.0.72: https://svn.apache.org/viewvc?view=revision&revision=1757275 8.5.5: https://svn.apache.org/viewvc?view=revision&revision=1757272 8.0.37: https://svn.apache.org/viewvc?view=revision&revision=1757273

Other sources

The ResourceLinkFactory implementation in Apache Tomcat 9.0.0.M1 to 9.0.0.M9, 8.5.0 to 8.5.4, 8.0.0.RC1 to 8.0.36, 7.0.0 to 7.0.70 and 6.0.0 to 6.0.45 did not limit web application access to global JNDI resources to those resources explicitly linked to the web application. Therefore, it was possible for a web application to access any global JNDI resource whether an explicit ResourceLink had been configured or not.

— Ubuntu

Affected Software

52 affected componentsFixes available
maven/org.apache.tomcat:tomcat>=7.0.0<7.0.72
7.0.72
maven/org.apache.tomcat:tomcat>=8.0.0<=8.0.36
8.0.37
maven/org.apache.tomcat:tomcat>=8.5.0<=8.5.4
8.5.5
maven/org.apache.tomcat:tomcat>=9.0.0.M1<=9.0.0.M9
9.0.0.M10
Apache Tomcat>=6.0.0<=6.0.45
Apache Tomcat>=7.0.0<=7.0.70
Apache Tomcat>=8.0<=8.0.36
Apache Tomcat>=8.5.0<=8.5.4
Apache Tomcat=9.0.0-m1
Apache Tomcat=9.0.0-m2
Apache Tomcat=9.0.0-m3
Apache Tomcat=9.0.0-m4
Apache Tomcat=9.0.0-m5
Apache Tomcat=9.0.0-m6
Apache Tomcat=9.0.0-m7
Apache Tomcat=9.0.0-m8
Apache Tomcat=9.0.0-m9
Oracle Tekelec Platform Distribution>=7.4.0<=7.7.1
Debian Debian Linux=8.0
NetApp OnCommand Insight
NetApp Oncommand Shift
NetApp Snap Creator Framework
Canonical Ubuntu Linux=16.04
redhat Jboss Enterprise Web Server=3.0.0
redhat Enterprise Linux Desktop=7.0
redhat Enterprise Linux Eus=7.4
redhat Enterprise Linux Eus=7.5
redhat Enterprise Linux Eus=7.6
redhat Enterprise Linux Eus=7.7
redhat Enterprise Linux Server=7.0
redhat Enterprise Linux Server Aus=7.4
redhat Enterprise Linux Server Aus=7.6
redhat Enterprise Linux Server Aus=7.7
redhat Enterprise Linux Server Tus=7.6
redhat Enterprise Linux Server Tus=7.7
redhat Enterprise Linux Workstation=7.0
redhat/tomcat<6.0.47
6.0.47
redhat/tomcat<7.0.72
7.0.72
redhat/tomcat<8.5.5
8.5.5
redhat/tomcat<8.0.37
8.0.37
Apache Tomcat=9.0.0-milestone1
Apache Tomcat=9.0.0-milestone2
Apache Tomcat=9.0.0-milestone3
Apache Tomcat=9.0.0-milestone4
Apache Tomcat=9.0.0-milestone5
Apache Tomcat=9.0.0-milestone6
Apache Tomcat=9.0.0-milestone7
Apache Tomcat=9.0.0-milestone8
Apache Tomcat=9.0.0-milestone9
debian/tomcat6
6.0.45+dfsg-1~deb7u36.0.41-3
debian/tomcat7
7.0.28-4+deb7u77.0.56-3+deb8u57.0.72-1
debian/tomcat8
8.0.14-1+deb8u48.0.37-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade maven/org.apache.tomcat:tomcat to a version that resolves this vulnerability.

    Fixed in 7.0.72
  2. Upgrade

    Upgrade maven/org.apache.tomcat:tomcat to a version that resolves this vulnerability.

    Fixed in 8.0.37
  3. Upgrade

    Upgrade maven/org.apache.tomcat:tomcat to a version that resolves this vulnerability.

    Fixed in 8.5.5
  4. Upgrade

    Upgrade maven/org.apache.tomcat:tomcat to a version that resolves this vulnerability.

    Fixed in 9.0.0.M10
  5. Upgrade

    Upgrade redhat/tomcat to a version that resolves this vulnerability.

    Fixed in 6.0.47
  6. Upgrade

    Upgrade redhat/tomcat to a version that resolves this vulnerability.

    Fixed in 7.0.72
  7. Upgrade

    Upgrade redhat/tomcat to a version that resolves this vulnerability.

    Fixed in 8.5.5
  8. Upgrade

    Upgrade redhat/tomcat to a version that resolves this vulnerability.

    Fixed in 8.0.37
  9. Upgrade

    Upgrade debian/tomcat6 to a version that resolves this vulnerability.

    Fixed in 6.0.45+dfsg-1~deb7u3Fixed in 6.0.41-3
  10. Upgrade

    Upgrade debian/tomcat7 to a version that resolves this vulnerability.

    Fixed in 7.0.28-4+deb7u7Fixed in 7.0.56-3+deb8u5Fixed in 7.0.72-1
  11. Upgrade

    Upgrade debian/tomcat8 to a version that resolves this vulnerability.

    Fixed in 8.0.14-1+deb8u4Fixed in 8.0.37-1
  12. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 6.0.47
  13. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 7.0.72
  14. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 8.0.37
  15. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 8.5.5

Event History

Oct 27, 2016
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Oct 28, 2016
Data Sourced
12:00 AM
RemedyDescriptionSeverityAffected Software
Updated
via Ubuntu·12:00 AM
RemedyDescriptionAffected Software
Updated
via Ubuntu·12:00 AM
Description
Aug 10, 2017
CVE Published
via MITRE·10:00 PM
Oct 27, 2021
Data Sourced
via Red Hat·10:52 AM
DescriptionSeverityAffected Software
Apr 18, 2022
Data Sourced
05:56 PM
Weakness
May 13, 2022
Advisory Published
01:02 AM
Nov 7, 2023
Updated
02:34 AM
RemedyAffected Software
Dec 8, 2023
Data Sourced
via NVD·04:41 PM
RemedyDescriptionSeverityWeaknessAffected Software
Updated
04:41 PM
Affected Software
Advisory Published
08:59 PM
Feb 23, 2024
Data Sourced
via GitHub·04:16 PM
DescriptionSeverityWeaknessAffected Software
Nov 21, 2024
Updated
via NVD·02:56 AM
RemedyAffected Software
Apr 20, 2025
Updated
via NVD·01:37 AM
Affected Software
Aug 18, 2025
Updated
via Ubuntu·12:00 AM
Description
May 13, 2026
Updated
via NVD·12:24 AM
Affected Software
Oct 8, 2026
Updated
via NVD·10:16 PM
RemedyAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2016-6797?

The severity of CVE-2016-6797 is considered medium due to its potential for unauthorized access to global JNDI resources.

2

How do I fix CVE-2016-6797?

To fix CVE-2016-6797, update to Tomcat version 6.0.47, 7.0.72, 8.0.37, 8.5.5, or 9.0.0.M10.

3

Which versions of Tomcat are affected by CVE-2016-6797?

Affected versions of Tomcat include 6.0.0 to 6.0.45, 7.0.0 to 7.0.70, 8.0.0 to 8.0.36, and 8.5.0 to 8.5.4.

4

What is the risk associated with CVE-2016-6797?

The risk associated with CVE-2016-6797 is that a vulnerable web application could access sensitive global JNDI resources without proper authorization.

5

Is there a workaround for CVE-2016-6797?

A potential workaround for CVE-2016-6797 includes restricting access to JNDI resources through appropriate security configurations.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203