CVE-2016-6797 · apache
CVE-2016-6797
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.
Published 2017-08-10, last changed 2026-10-08. Weakness: CWE-863.
How to fix
Upgrade to a fixed version: org.apache.tomcat:tomcat 7.0.72, 8.0.37, 8.5.5, 9.0.0.M10 (Maven) (each is the fix for its own release line). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in apache/tomcat by 2859ac3eae, d6b5600afe. Functions changed by the fix: lifecycleEvent, addResourceLink, getGlobalNamingContext, removeResourceLink, registerGlobalResourceAccess, deregisterGlobalResourceAccess, validateGlobalContext, validateGlobalResourceAccess, getObjectInstance. Regression tests: test/org/apache/naming/TestNamingContext.java. Confidence: inferred (code changed near the fix, but no record names this exact commit as the fix).
Timeline
| 2017-08-10 | Published |
| 2022-05-13 | Package advisory GHSA-q6x7-f33r-3wxx |
| 2026-10-08 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 8.07% |
| 2026-12-02 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-q6x7-f33r-3wxx | org.apache.tomcat:tomcat (Maven) | 9.0.0.M10 |
| GHSA-q6x7-f33r-3wxx | org.apache.tomcat:tomcat (Maven) | 8.5.5 |
| GHSA-q6x7-f33r-3wxx | org.apache.tomcat:tomcat (Maven) | 8.0.37 |
| GHSA-q6x7-f33r-3wxx | org.apache.tomcat:tomcat (Maven) | 7.0.72 |
Also known as: GHSA-q6x7-f33r-3wxx
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2026-68525 | 2026-08-25 | 9.1 | Apache Tomcat: Redirect after FORM auth may bypass method specific constraints |
| CVE-2026-65905 | 2026-08-25 | 9.8 | Apache Tomcat: Limited replay attack possible with DIGEST authentication |
| CVE-2026-65182 | 2026-08-25 | 9.1 | Apache Tomcat: Bypass longest prefix security constraint |
| CVE-2026-55957 | 2026-06-29 | 7.3 | Apache Tomcat: Authentication bypass with JNDIRealm and GSSAPI authenticated bind |
| CVE-2026-55956 | 2026-06-29 | 6.5 | Apache Tomcat: Security constraints for default servlet ignored method |
| CVE-2026-55955 | 2026-06-29 | 6.5 | Apache Tomcat: EncryptInterceptor not protected against replay attacks |
| CVE-2026-55276 | 2026-06-29 | 9.1 | Apache Tomcat: Logged effective web.xml is incomplete |
| CVE-2026-53404 | 2026-06-29 | 7.3 | Apache Tomcat: Bad ornext processing in RewriteValve |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2016-6797, or call /api/v1/vulnerabilities/CVE-2016-6797. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.