{"id":"CVE-2026-5795","aliases":["CVE-2026-5795","GHSA-r7p8-xq5m-436c"],"related":[],"kind":"vulnerability","state":"published","title":"Eclipse Jetty: Early return from the JASPIAuthenticator code can potentially no clear ThreadLocal variables","summary":"In Eclipse Jetty, the class JASPIAuthenticator initiates the authentication checks, which set two ThreadLocal variable.\n\n\nUpon returning from the initial checks, there are conditions that cause an early return from the JASPIAuthenticator code without clearing those ThreadLocals.\n\n\nA subsequent request using the same thread inherits the ThreadLocal values, leading to a broken access control and privilege escalation.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In Eclipse Jetty, the class JASPIAuthenticator initiates the authentication checks, which set two ThreadLocal variable.\n\n\nUpon returning from the initial checks, there are conditions that cause an early return from the JASPIAuthenticator code without clearing those ThreadLocals.\n\n\nA subsequent request using the same thread inherits the ThreadLocal values, leading to a broken access control and privilege escalation.","source":"cvelist"},{"lang":"en","text":"### Description (as reported)\n\nA security vulnerability has been identified in Jetty's  `JaspiAuthenticator.java`. \n\nThe root cause is a failure to consistently clear authentication metadata stored in  `ThreadLocal`  during certain error or incomplete authentication flows. \nSpecifically, 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. \nThis 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.\n\nSee also attached PDF.\n\n### Impact\nAn unauthenticated user may gain ungrated privileges from a previous request (privilege escalation).\n\n### Patches\nNo patches yet.\n\n### Workarounds\nDo not use Jetty's JASPI.","format":"markdown","source":"ghsa"},{"lang":"es","text":"En Eclipse Jetty, la clase JASPIAuthenticator inicia las comprobaciones de autenticación, que establecen dos variables ThreadLocal.\n\nAl regresar de las comprobaciones iniciales, existen condiciones que provocan un retorno anticipado del código de JASPIAuthenticator sin borrar esas ThreadLocals.\n\nUna solicitud posterior utilizando el mismo hilo hereda los valores de ThreadLocal, lo que lleva a un control de acceso roto y escalada de privilegios.","source":"nvd"}],"published":"2026-04-08T13:32:28.935Z","modified":"2026-09-14T13:18:42.263Z","severity":{"scorer":"eclipse","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","score":7.4,"rating":"HIGH"},"severities":[{"scorer":"eclipse","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","score":7.4,"rating":"HIGH"},{"scorer":"redhat-SADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","score":7.4,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","score":7.4,"rating":"HIGH"}],"cwes":["CWE-226","CWE-287"],"affected":[{"ranges":[{"type":"semver","introduced":"12.1.0","lastAffected":"12.1.7","status":"affected"},{"type":"semver","introduced":"12.0.0","lastAffected":"12.0.33","status":"affected"},{"type":"semver","introduced":"11.0.0","lastAffected":"11.0.28","status":"affected"},{"type":"semver","introduced":"10.0.0","lastAffected":"10.0.28","status":"affected"},{"type":"semver","introduced":"9.4.0","lastAffected":"9.4.60","status":"affected"}],"vendor":"Eclipse Foundation","product":"Eclipse Jetty","repo":"https://github.com/jetty/jetty.project","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"ee10-servlet","fixed":"*","status":"unaffected"},{"type":"rpm","introduced":"ee10-webapp","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"HawtIO HawtIO 4.4.0","package":"jetty","cpe":"cpe:/a:redhat:apache_camel_hawtio:4.4::el9","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"ee10-annotations","fixed":"*","status":"unaffected"},{"type":"rpm","introduced":"ee10-plus","fixed":"*","status":"unaffected"},{"type":"rpm","introduced":"ee10-servlet","fixed":"*","status":"unaffected"},{"type":"rpm","introduced":"ee10-servlets","fixed":"*","status":"unaffected"},{"type":"rpm","introduced":"ee10-webapp","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Apache Camel 4.18.1 for Spring Boot 3.5.14","package":"jetty","cpe":"cpe:/a:redhat:apache_camel_spring_boot:4.18","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"apache-jsp","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat build of Apache Camel 4.18.1 for Spring Boot 3.5.14","package":"jetty-ee10","cpe":"cpe:/a:redhat:apache_camel_spring_boot:4.18","source":"cvelist"},{"ranges":[{"type":"rpm","introduced":"1782239370","fixed":"*","status":"unaffected"}],"vendor":"Red Hat","product":"Red Hat Offline Knowledge Portal 1.2.12","package":"offline-knowledge-portal/rhokp-rhel9","cpe":"cpe:/a:redhat:offline_knowledge_portal:1.2::el9","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat Data Grid 8","package":"jetty-ee10-servlet","cpe":"cpe:/a:redhat:jboss_data_grid:8","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform 8","package":"jetty-ee10-annotations","cpe":"cpe:/a:redhat:jboss_enterprise_application_platform:8","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform 8","package":"jetty-ee10-apache-jsp","cpe":"cpe:/a:redhat:jboss_enterprise_application_platform:8","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform 8","package":"jetty-ee10-cdi","cpe":"cpe:/a:redhat:jboss_enterprise_application_platform:8","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform 8","package":"jetty-ee10-fcgi-proxy","cpe":"cpe:/a:redhat:jboss_enterprise_application_platform:8","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform 8","package":"jetty-ee10-glassfish-jstl","cpe":"cpe:/a:redhat:jboss_enterprise_application_platform:8","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform 8","package":"jetty-ee10-home","cpe":"cpe:/a:redhat:jboss_enterprise_application_platform:8","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform 8","package":"jetty-ee10-jaspi","cpe":"cpe:/a:redhat:jboss_enterprise_application_platform:8","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform 8","package":"jetty-ee10-jndi","cpe":"cpe:/a:redhat:jboss_enterprise_application_platform:8","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform 8","package":"jetty-ee10-jspc-maven-plugin","cpe":"cpe:/a:redhat:jboss_enterprise_application_platform:8","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform 8","package":"jetty-ee10-maven-plugin","cpe":"cpe:/a:redhat:jboss_enterprise_application_platform:8","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform 8","package":"jetty-ee10-plus","cpe":"cpe:/a:redhat:jboss_enterprise_application_platform:8","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform 8","package":"jetty-ee10-proxy","cpe":"cpe:/a:redhat:jboss_enterprise_application_platform:8","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform 8","package":"jetty-ee10-quickstart","cpe":"cpe:/a:redhat:jboss_enterprise_application_platform:8","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform 8","package":"jetty-ee10-servlet","cpe":"cpe:/a:redhat:jboss_enterprise_application_platform:8","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform 8","package":"jetty-ee10-servlets","cpe":"cpe:/a:redhat:jboss_enterprise_application_platform:8","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform 8","package":"jetty-ee10-webapp","cpe":"cpe:/a:redhat:jboss_enterprise_application_platform:8","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform Expansion Pack","package":"jetty-ee10-annotations","cpe":"cpe:/a:redhat:jbosseapxp","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform Expansion Pack","package":"jetty-ee10-apache-jsp","cpe":"cpe:/a:redhat:jbosseapxp","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform Expansion Pack","package":"jetty-ee10-cdi","cpe":"cpe:/a:redhat:jbosseapxp","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform Expansion Pack","package":"jetty-ee10-fcgi-proxy","cpe":"cpe:/a:redhat:jbosseapxp","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform Expansion Pack","package":"jetty-ee10-glassfish-jstl","cpe":"cpe:/a:redhat:jbosseapxp","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform Expansion Pack","package":"jetty-ee10-home","cpe":"cpe:/a:redhat:jbosseapxp","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform Expansion Pack","package":"jetty-ee10-jaspi","cpe":"cpe:/a:redhat:jbosseapxp","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform Expansion Pack","package":"jetty-ee10-jndi","cpe":"cpe:/a:redhat:jbosseapxp","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform Expansion Pack","package":"jetty-ee10-jspc-maven-plugin","cpe":"cpe:/a:redhat:jbosseapxp","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform Expansion Pack","package":"jetty-ee10-maven-plugin","cpe":"cpe:/a:redhat:jbosseapxp","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform Expansion Pack","package":"jetty-ee10-plus","cpe":"cpe:/a:redhat:jbosseapxp","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform Expansion Pack","package":"jetty-ee10-proxy","cpe":"cpe:/a:redhat:jbosseapxp","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform Expansion Pack","package":"jetty-ee10-quickstart","cpe":"cpe:/a:redhat:jbosseapxp","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform Expansion Pack","package":"jetty-ee10-servlet","cpe":"cpe:/a:redhat:jbosseapxp","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform Expansion Pack","package":"jetty-ee10-servlets","cpe":"cpe:/a:redhat:jbosseapxp","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat JBoss Enterprise Application Platform Expansion Pack","package":"jetty-ee10-webapp","cpe":"cpe:/a:redhat:jbosseapxp","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces","package":"devspaces/openvsx-rhel9","cpe":"cpe:/a:redhat:openshift_devspaces:3","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"Red Hat OpenShift Dev Spaces","package":"devspaces/pluginregistry-rhel9","cpe":"cpe:/a:redhat:openshift_devspaces:3","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"streams for Apache Kafka 3","package":"jetty-ee10-servlet","cpe":"cpe:/a:redhat:amq_streams:3","source":"cvelist"},{"ranges":[],"vendor":"Red Hat","product":"streams for Apache Kafka 3","package":"jetty-ee10-servlets","cpe":"cpe:/a:redhat:amq_streams:3","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"12.1.0","status":"affected","fixed":"12.1.8"}],"ecosystem":"Maven","package":"org.eclipse.jetty.ee11:jetty-ee11-jaspi","purl":"pkg:maven/org.eclipse.jetty.ee11/jetty-ee11-jaspi","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"12.1.0","status":"affected","fixed":"12.1.8"}],"ecosystem":"Maven","package":"org.eclipse.jetty.ee10:jetty-ee10-jaspi","purl":"pkg:maven/org.eclipse.jetty.ee10/jetty-ee10-jaspi","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"12.1.0","status":"affected","fixed":"12.1.8"}],"ecosystem":"Maven","package":"org.eclipse.jetty.ee9:jetty-ee9-jaspi","purl":"pkg:maven/org.eclipse.jetty.ee9/jetty-ee9-jaspi","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"12.1.0","status":"affected","fixed":"12.1.8"}],"ecosystem":"Maven","package":"org.eclipse.jetty.ee8:jetty-ee8-jaspi","purl":"pkg:maven/org.eclipse.jetty.ee8/jetty-ee8-jaspi","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"12.0.0","status":"affected","fixed":"12.0.34"}],"ecosystem":"Maven","package":"org.eclipse.jetty.ee11:jetty-ee11-jaspi","purl":"pkg:maven/org.eclipse.jetty.ee11/jetty-ee11-jaspi","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"12.0.0","status":"affected","fixed":"12.0.34"}],"ecosystem":"Maven","package":"org.eclipse.jetty.ee10:jetty-ee10-jaspi","purl":"pkg:maven/org.eclipse.jetty.ee10/jetty-ee10-jaspi","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"12.0.0","status":"affected","fixed":"12.0.34"}],"ecosystem":"Maven","package":"org.eclipse.jetty.ee9:jetty-ee9-jaspi","purl":"pkg:maven/org.eclipse.jetty.ee9/jetty-ee9-jaspi","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"12.0.0","status":"affected","fixed":"12.0.34"}],"ecosystem":"Maven","package":"org.eclipse.jetty.ee8:jetty-ee8-jaspi","purl":"pkg:maven/org.eclipse.jetty.ee8/jetty-ee8-jaspi","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"11.0.0","status":"affected","fixed":"11.0.29"}],"ecosystem":"Maven","package":"org.eclipse.jetty:jetty-jaspi","purl":"pkg:maven/org.eclipse.jetty/jetty-jaspi","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"10.0.0","status":"affected","fixed":"10.0.29"}],"ecosystem":"Maven","package":"org.eclipse.jetty:jetty-jaspi","purl":"pkg:maven/org.eclipse.jetty/jetty-jaspi","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"9.4.0","status":"affected","fixed":"9.4.61"}],"ecosystem":"Maven","package":"org.eclipse.jetty:jetty-jaspi","purl":"pkg:maven/org.eclipse.jetty/jetty-jaspi","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"9.4.0","lastAffected":"9.4.58"},{"status":"affected","introduced":"10.0.0","lastAffected":"10.0.26"},{"status":"affected","introduced":"11.0.0","lastAffected":"11.0.26"},{"status":"affected","introduced":"12.0.0","fixed":"12.0.34"},{"status":"affected","introduced":"12.1.0","fixed":"12.1.8"}],"vendor":"eclipse","product":"jetty","cpe":"cpe:2.3:a:eclipse:jetty:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/jetty/jetty.project/security/advisories/GHSA-r7p8-xq5m-436chttps://","tags":["broken-link"],"sources":["cvelist","nvd"]},{"url":"https://gitlab.eclipse.org/security/cve-assignment/-/issues/92","tags":["broken-link","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-5795","tags":["vdb-entry","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2456519","tags":["issue-tracking","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-5795.json","tags":["x-sadp-csaf-vex"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:25089","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:28573","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://access.redhat.com/errata/RHSA-2026:17668","tags":["vendor-advisory","x-refsource-redhat"],"sources":["cvelist","nvd"]},{"url":"https://github.com/jetty/jetty.project/security/advisories/GHSA-r7p8-xq5m-436c","tags":["web"],"sources":["ghsa"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-5795","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/jetty/jetty.project","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/user-attachments/files/26118760/JaspiAuthenticator_Security_Report.pdf","tags":["web"],"sources":["ghsa"]}],"credits":["https://github.com/HRsGIT"],"assigner":"eclipse","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-04-08T00:00:00.000Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-5795","url":"https://www.cve.org/CVERecord?id=CVE-2026-5795","licence":"CVE Terms of Use","modified":"2026-09-14T12:04:27.326Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-r7p8-xq5m-436c","url":"https://github.com/advisories/GHSA-r7p8-xq5m-436c","licence":"CC-BY-4.0","modified":"2026-04-14T00:40:59.663Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-5795","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-5795","licence":"Public domain","modified":"2026-09-14T13:18:42.263Z"}],"updatedAt":"2026-11-25T22:59:18.278Z","epss":{"score":0.0055,"percentile":0.47441,"date":"2026-12-01T12:00:22.000Z"}}