Loading advisory.
Loading advisory.
Eclipse Jetty Digest Authentication: ISO-8859-1 lossy encoding allows authentication bypass via character substitution
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.
Published 2026-07-22 22:55 UTC · Modified 2026-09-10 03:51 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| org.eclipse.jetty:jetty-security | Maven | >= 9.4.0.v20161208, < 9.4.63 >= 10.0.0, < 10.0.31 >= 11.0.0, < 11.0.31 >= 12.0.0, < 12.0.36 >= 12.1.0, < 12.1.10 versions 9.4.0.v20161208, 9.4.0.v20180619, 9.4.1.v20170120, 9.4.1.v20180619, 9.4.10.RC0, 9.4.10.RC1, 9.4.10.v20180503, 9.4.11.v20180605, 9.4.12.RC0, 9.4.12.RC1, 9.4.12.RC2, 9.4.12.v20180830, 9.4.13.v20181111, 9.4.14.v20181114, 9.4.15.v20190215, 9.4.16.v20190411, 9.4.17.v20190418, 9.4.18.v20190429, 9.4.19.v20190610, 9.4.2.v20170220 and 154 more | 9.4.63, 10.0.31, 11.0.31, 12.0.36, 12.1.10 | No single command for Maven. Update to 9.4.63, 10.0.31, 11.0.31, 12.0.36, 12.1.10 in your build file. |
| org.eclipse.jetty.ee8:jetty-ee8-security | Maven | >= 12.0.0, < 12.0.36 >= 12.1.0, < 12.1.10 versions 12.0.0, 12.0.1, 12.0.10, 12.0.11, 12.0.12, 12.0.13, 12.0.14, 12.0.15, 12.0.16, 12.0.17, 12.0.18, 12.0.19, 12.0.2, 12.0.20, 12.0.21, 12.0.22, 12.0.23, 12.0.24, 12.0.25, 12.0.26 and 26 more | 12.0.36, 12.1.10 | No single command for Maven. Update to 12.0.36, 12.1.10 in your build file. |
| org.eclipse.jetty.ee9:jetty-ee9-security | Maven | >= 12.0.0, < 12.0.36 >= 12.1.0, < 12.1.10 versions 12.0.0, 12.0.1, 12.0.10, 12.0.11, 12.0.12, 12.0.13, 12.0.14, 12.0.15, 12.0.16, 12.0.17, 12.0.18, 12.0.19, 12.0.2, 12.0.20, 12.0.21, 12.0.22, 12.0.23, 12.0.24, 12.0.25, 12.0.26 and 26 more | 12.0.36, 12.1.10 | No single command for Maven. Update to 12.0.36, 12.1.10 in your build file. |
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.
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.
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 ← IDENTICALMulti-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!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.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.005 on 2026-11-24 to 0.006 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.005 | first score | v2026.06.15 |
| 2026-11-26 | 0.006 | 0.005 | v2026.06.15 |