CVE-2026-5795
Eclipse Jetty: Early return from the JASPIAuthenticator code can potentially no clear ThreadLocal variables
Description
Description (as reported)
A security vulnerability has been identified in Jetty's JaspiAuthenticator.java.
The root cause is a failure to consistently clear authentication metadata stored in ThreadLocal during certain error or incomplete authentication flows.
Specifically, after a GroupPrincipalCallback is persisted into the ThreadLocal, the authentication process may exit prematurely — before the ThreadLocal storage is cleared — if a mandatory CallerPrincipalCallback is missing or an exception occurs.
This allows a subsequent, unprivileged user processed by the same worker thread to inherit these residual security roles, leading to Broken Access Control and Privilege Escalation.
See also attached PDF.
Impact
An unauthenticated user may gain ungrated privileges from a previous request (privilege escalation).
Patches
No patches yet.
Workarounds
Do not use Jetty's JASPI.
Affected Maven artifacts (5)
| Artifact | Affected versions | Fixed in |
|---|---|---|
| org.eclipse.jetty » jetty-jaspi | >= 9.4.0, < 9.4.61>= 10.0.0, < 10.0.29>= 11.0.0, < 11.0.29 | 9.4.61, 10.0.29, 11.0.29 |
| org.eclipse.jetty.ee10 » jetty-ee10-jaspi | >= 12.0.0, < 12.0.34>= 12.1.0, < 12.1.8 | 12.0.34, 12.1.8 |
| org.eclipse.jetty.ee11 » jetty-ee11-jaspi | >= 12.0.0, < 12.0.34>= 12.1.0, < 12.1.8 | 12.0.34, 12.1.8 |
| org.eclipse.jetty.ee8 » jetty-ee8-jaspi | >= 12.0.0, < 12.0.34>= 12.1.0, < 12.1.8 | 12.0.34, 12.1.8 |
| org.eclipse.jetty.ee9 » jetty-ee9-jaspi | >= 12.0.0, < 12.0.34>= 12.1.0, < 12.1.8 | 12.0.34, 12.1.8 |
Blast radius
47% of the dependent artifacts (70) still pull an affected version in their latest release.
| Depth | Dependent versions |
|---|---|
| Direct | 416 |
| 2 hops | 378 |
| 3 hops | 1,234 |
| 4 hops | 1,951 |
| 5 hops | 3,755 |
| 6 hops | 17,238 |
Most used dependents
- org.apache.hive » hive-jdbc404 usages
- org.apache.hive » hive-service301 usages
- org.eclipse.jetty.aggregate » jetty-all208 usages
- com.atlassian.bamboo » atlassian-bamboo-web203 usages
- org.wso2.carbon.automation » org.wso2.carbon.automation.extensions159 usages
- org.apache.hive.hcatalog » hive-hcatalog-core96 usages
- org.apache.hive » hive-cli71 usages
- org.ops4j.pax.web » pax-web-jetty-bundle57 usages
- org.apache.spark » spark-hive-thriftserver52 usages
- io.cdap.cdap » hydrator-test48 usages
- org.apache.activemq » activemq-osgi43 usages
- org.apache.hive.hcatalog » hive-webhcat-java-client42 usages
- org.apache.activemq » activemq-karaf29 usages
- io.cdap.cdap » cdap-unit-test28 usages
- org.apache.activemq » activemq-http25 usages
Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.
References
- Webhttps://github.com/jetty/jetty.project/security/advisories/GHSA-r7p8-xq5m-436c
- Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2026-5795
- Packagehttps://github.com/jetty/jetty.project
- Webhttps://github.com/user-attachments/files/26118760/JaspiAuthenticator_Security_Report.pdf
- Webhttps://gitlab.eclipse.org/security/cve-assignment/-/issues/92
