---
id: CVE-2026-5795
title: >-
  In Eclipse Jetty, the class JASPIAuthenticator initiates the authentication
  checks, which set two ThreadLocal variable.



  Upon returning from the initial checks, there are conditions that cause an
  early return from the JASPIAuthenticator…
summary: >-
  In Eclipse Jetty, the class JASPIAuthenticator initiates the authentication
  checks, which set two ThreadLocal variable.



  Upon returning from the initial checks, there are conditions that cause an
  early return from the JASPIAuthenticator…
severity: high
cvss: 7.4
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N'
cwe:
  - CWE-226
  - CWE-287
vendor: eclipse
product: jetty
affected:
  - 'jetty >= 9.4.0, <= 9.4.58'
  - 'jetty >= 10.0.0, <= 10.0.26'
  - 'jetty >= 11.0.0, <= 11.0.26'
  - 'jetty >= 12.0.0, < 12.0.34'
  - 'jetty >= 12.1.0, < 12.1.8'
patched:
  - jetty 12.1.8
published: '2026-04-08'
updated: '2026-09-14'
sourceUpdated: '2026-09-14T13:18:42.263'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-5795'
references:
  - url: >-
      https://github.com/jetty/jetty.project/security/advisories/GHSA-r7p8-xq5m-436chttps://
    label: emo@eclipse.org
  - url: 'https://gitlab.eclipse.org/security/cve-assignment/-/issues/92'
    label: emo@eclipse.org
  - url: 'https://access.redhat.com/errata/RHSA-2026:17668'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:25089'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/errata/RHSA-2026:28573'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://access.redhat.com/security/cve/CVE-2026-5795'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2456519'
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-5795.json
    label: 0b0ca135-0b70-47e7-9f44-1890c2a1c46c
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-5795'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-5795'
  - url: 'https://github.com/advisories/GHSA-gc59-r5jq-98qw'
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: total
  timestamp: '2026-04-08T00:00:00+00:00'
epss: 0.00529
epssPercentile: 0.4373
ingestedAt: '2026-07-02T12:34:40.498Z'
---

## Overview

In Eclipse Jetty, the class JASPIAuthenticator initiates the authentication checks, which set two ThreadLocal variable.


Upon returning from the initial checks, there are conditions that cause an early return from the JASPIAuthenticator code without clearing those ThreadLocals.


A subsequent request using the same thread inherits the ThreadLocal values, leading to a broken access control and privilege escalation.

## Affected

- `jetty >= 9.4.0, <= 9.4.58`
- `jetty >= 10.0.0, <= 10.0.26`
- `jetty >= 11.0.0, <= 11.0.26`
- `jetty >= 12.0.0, < 12.0.34`
- `jetty >= 12.1.0, < 12.1.8`

## Remediation

Upgrade past the affected range:

- `jetty 12.1.8`

## Vendor advisories

- **RHSA-2026:25089** · Red Hat · fixed in: HawtIO HawtIO 4.4.0 · released 2026-06-10 · [advisory](https://access.redhat.com/errata/RHSA-2026:25089)
- **RHSA-2026:28573** · Red Hat · fixed in: Red Hat Offline Knowledge Portal 1.2.4 · released 2026-06-23 · [advisory](https://access.redhat.com/errata/RHSA-2026:28573)
- **RHSA-2026:17668** · Red Hat · fixed in: Red Hat build of Apache Camel 4.18.1 for Spring Boot 3.5.14 · released 2026-05-14 · [advisory](https://access.redhat.com/errata/RHSA-2026:17668)
- **Red Hat VEX** · Important · affected: streams for Apache Kafka 3 · no fix planned: streams for Apache Kafka 3 · updated 2026-09-21 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-5795.json)
