Eclipse Jetty Digest Authentication: ISO-8859-1 lossy encoding allows authentication bypass via character substitutionGHSA-2fvj-hgj9-j2gr
Fix: jetty/jetty.project#15160GHSA-2fvj-hgj9-j2gr is a CWE-173 vulnerability in org.eclipse.jetty:jetty-security. A fix is available for org.eclipse.jetty:jetty-security — see the affected versions and patch details below.
Exploitation Status
Proof-of-concept exploit code exists
- CISA’s SSVC triage found public proof-of-concept exploit code for this CVE, though no confirmed active exploitation.
- CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
Exploitation and automatability from CISA’s SSVC triage for GHSA-2fvj-hgj9-j2gr.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
Real-World Exposure
org.eclipse.jetty:jetty-security☕org.eclipse.jetty:jetty-security☕org.eclipse.jetty:jetty-security☕org.eclipse.jetty:jetty-security☕org.eclipse.jetty.ee8:jetty-ee8-security☕org.eclipse.jetty.ee9:jetty-ee9-security☕org.eclipse.jetty:jetty-security☕org.eclipse.jetty.ee8:jetty-ee8-security+1 moreReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Maven packages — download data is not available via public APIs for these ecosystems.
Description
Summary
The DigestAuthentication.apply() method in Jetty's HTTP client uses getBytes(StandardCharsets.ISO_8859_1) at three locations (lines 171, 179, 196) to compute Digest auth response hashes. ISO-8859-1 silently replaces any character above U+00FF (Chinese, Japanese, Cyrillic, Arabic, Emoji, etc.) with 0x3F (?), causing all such characters to produce identical hash contributions. An attacker who knows a victim's username can bypass Digest authentication by replacing all non-Latin-1 characters in the password with ? characters, since the collision password produces the same MD5-based Digest response hash as the original password.
Details
Root Cause
In jetty-core/jetty-client/src/main/java/org/eclipse/jetty/client/DigestAuthentication.java, the apply() method computes the three Digest auth hashes (H(A1), H(A2), and the final response) using ISO-8859-1 character encoding:
// Line 171 — H(A1)
String hashA1 = toHexString(digester.digest(a1.getBytes(StandardCharsets.ISO_8859_1)));
// Line 179 — H(A2)
String hashA2 = toHexString(digester.digest(a2.getBytes(StandardCharsets.ISO_8859_1)));
// Line 196 — Final response hash
final String hashA3 = toHexString(digester.digest(a3.getBytes(StandardCharsets.ISO_8859_1)));
ISO-8859-1 (Latin-1) can only encode characters in the range U+0000–U+00FF. Any character outside this range — including all CJK, Cyrillic, Arabic, Greek, Hangul, and emoji characters — is silently replaced with the byte 0x3F (?). String.getBytes(ISO_8859_1) in Java performs this replacement without any warning or exception.
PoC
Password: "我爱Java!密码123★" (7 non-Latin-1 characters)
UTF-8 encoding: 45 bytes → MD5 H(A1) = 9a4e61484f228633d5d0f95d1bbb0a99
ISO-8859-1: 31 bytes → MD5 H(A1) = d60ddc903d71913bcc3ab4a94f7fc239
Collision "??...": 31 bytes → MD5 H(A1) = d60ddc903d71913bcc3ab4a94f7fc239 ← IDENTICAL
Multi-language confirmation — all four language passwords below produce the same hash:
Chinese (密码123) → H(A1) = db87f31e8d96cd15f9acec7eabdc4560
Korean (비번123) → H(A1) = db87f31e8d96cd15f9acec7eabdc4560
Cyrillic(аб123) → H(A1) = db87f31e8d96cd15f9acec7eabdc4560
Greek (αβ123) → H(A1) = db87f31e8d96cd15f9acec7eabdc4560
Attacker(??123) → H(A1) = db87f31e8d96cd15f9acec7eabdc4560 ← all collide!
Impact
Scenario 1: Authentication Bypass (Collision Attack)
If a service using Jetty for Digest authentication has a user with a non-Latin-1 password (e.g., Chinese, Japanese, Russian), an attacker can authenticate as that user using a collision password where all non-Latin-1 characters are replaced with ?:
- Original password:
我爱Java!密码123★ - Collision password:
??Java!??123? - Both produce identical MD5 hashes under ISO-8859-1 → Authentication succeeds
This affects any password containing characters > U+00FF, which covers:
- Chinese (CJK): U+4E00–U+9FFF
- Japanese (Hiragana/Katakana/Kanji): U+3040–U+30FF, U+4E00+
- Korean (Hangul): U+AC00–U+D7AF
- Cyrillic: U+0400–U+04FF (Russian, Ukrainian, Bulgarian, etc.)
- Arabic: U+0600–U+06FF
- Greek: U+0370–U+03FF
- Latin Extended: U+0100–U+024F (accented European characters like ĉ, ğ, ñ when > U+00FF)
- Emoji / Symbols > U+00FF
Scenario 2: Denial of Service for Non-Latin-1 Users
Most modern web applications store password hashes computed using UTF-8. When Jetty's Digest client computes a hash with ISO-8859-1, the bytes differ from what the server stored/expects. This means any user with non-ASCII (Latin-1+) characters in their password can never successfully authenticate via Digest auth — even the legitimate user. This is not just a security issue but a functional correctness bug that silently breaks authentication for most non-European-language users.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| ☕Maven | org.eclipse.jetty:jetty-security | ≥ 9.4.0.v20161208&&< 9.4.63 | 9.4.63org.eclipse.jetty:jetty-security:9.4.63 |
| ☕Maven | org.eclipse.jetty:jetty-security | ≥ 10.0.0&&< 10.0.31 | 10.0.31org.eclipse.jetty:jetty-security:10.0.31 |
| ☕Maven | org.eclipse.jetty:jetty-security | ≥ 11.0.0&&< 11.0.31 | 11.0.31org.eclipse.jetty:jetty-security:11.0.31 |
| ☕Maven | org.eclipse.jetty:jetty-security | ≥ 12.0.0&&< 12.0.36 | 12.0.36org.eclipse.jetty:jetty-security:12.0.36 |
| ☕Maven | org.eclipse.jetty.ee8:jetty-ee8-security | ≥ 12.0.0&&< 12.0.36 | 12.0.36org.eclipse.jetty.ee8:jetty-ee8-security:12.0.36 |
| ☕Maven | org.eclipse.jetty.ee9:jetty-ee9-security | ≥ 12.0.0&&< 12.0.36 | 12.0.36org.eclipse.jetty.ee9:jetty-ee9-security:12.0.36 |
Affected Products
jettyeclipseDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for org.eclipse.jetty:jetty-security, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update org.eclipse.jetty:jetty-security to 9.4.63 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-2fvj-hgj9-j2gr is resolved across your whole dependency graph.
Workarounds
Put an independent control in front of the weakness: restrict the affected endpoint or interface to trusted networks, require an additional authentication factor or proxy-level check, and invalidate existing sessions and credentials in case the flaw has already been used.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
Important: This flaw allows an authentication bypass in Eclipse Jetty's HTTP Digest authentication. An attacker who knows a victim's username can craft a collision password if the original password contains non-Latin-1 characters, leading to unauthorized access in affected Red Hat products that utilize this…
To mitigate this vulnerability, ensure that all user passwords configured for HTTP Digest authentication in affected Eclipse Jetty deployments exclusively use characters within the Latin-1 character set. This prevents the character encoding collision that leads to authentication bypass.Source: Red Hat security advisory for GHSA-2fvj-hgj9-j2gr (CC BY 4.0)
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat AMQ Broker 7.13.6 | jetty-security | RHSA-2026:66545 |
| Red Hat AMQ Broker 7.14.1 | jetty-security | RHSA-2026:66488 |
| Red Hat build of Apache Camel 4.18.4 for Spring Boot 3.5.16 | jetty-security | RHSA-2026:71675 |
| Red Hat Build of Debezium 3.6 | see advisory | RHSA-2026:83612 |
| OpenShift Developer Tools and Services 4.12 | ocp-tools-4/jenkins-rhel8:1792044326 | RHSA-2026:88152 |
| OpenShift Developer Tools and Services 4.13 | ocp-tools-4/jenkins-rhel8:1792044327 | RHSA-2026:88149 |
| OpenShift Developer Tools and Services 4.14 | ocp-tools-4/jenkins-rhel8:1792044382 | RHSA-2026:88151 |
| OpenShift Developer Tools and Services 4.15 | ocp-tools-4/jenkins-rhel8:1792044386 | RHSA-2026:88150 |
Frequently Asked Questions
Is GHSA-2fvj-hgj9-j2gr in your dependencies?
Find it across Maven, including transitive dependencies.