NMS-20060: Fixed CVE-2026-10050 - #4
Open
christianpape wants to merge 1 commit into
Open
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
GHSA-2fvj-hgj9-j2gr / CVE-2026-10050: the Digest auth code hashed H(A1), H(A2) and the response with ISO-8859-1. String.getBytes(ISO_8859_1) silently maps every character above U+00FF to ? (0x3F), so a password like 密码 hashes to exactly the same bytes as the literal password ??. An attacker who knows the username of a user with a non-Latin-1 password can authenticate with a colliding ? password — and legitimate non-Latin-1 users can't authenticate reliably at all.
Upstream's fix (d0bb829, shipped in 12.0.36/12.1.10 and 9.4.63) is a full RFC 7616 refresh. I backported the security-relevant core of it rather than the whole rewrite, since the refresh also changes the default algorithm to SHA-256, requires 8-digit nc, replaces the nonce store, etc. — breaking changes not needed to close the CVE.
Changes
Server — jetty-security/.../DigestAuthenticator.java
Client — jetty-client/.../util/DigestAuthentication.java
jetty-jaspi/.../DigestAuthModule.java — this deprecated module duplicates the server logic verbatim and had the identical bypass. Same fix applied. It's outside the advisory's stated scope but it's shipped and exploitable.
Tests
ConstraintTest (jetty-security) — testDigestNonLatin1PasswordCollisionIsRejected asserts the collision exists at the hash level (digest(ISO_8859_1, …, "??") == digest(ISO_8859_1, …, PASSWORD_UTF8)), then that the colliding credential gets 401, that a legacy ISO-8859-1 client gets 401, and that the real password hashed with UTF-8 gets 200. Plus testDigestNonLatin1UserName for username* round-trip, mutual exclusion, and non-UTF-8 rejection.
HttpClientAuthenticationTest (jetty-client) — non-Latin-1 password and non-Latin-1 username end-to-end, plus testDigestNonLatin1PasswordWithoutCharsetFailsRatherThanColliding which asserts no Authorization header is sent at all against a charset-less server.
I verified these are real regression tests, not just passing tests: with the ISO-8859-1 hashing restored, the server collision test authenticates with 200 OK, and the client test finds an Authorization header where it expects a failure.
Results: ConstraintTest 46/46, HttpClientAuthenticationTest 40/40, integration DigestPostTest 4/4, full jetty-client suite 614 run / 0 failures. Three pre-existing failures are unrelated and fail identically on the pristine tree — AliasedConstraintTest.testAccess (macOS case-insensitive filesystem) and HttpClientTest.testBindAddress (BindException); jetty-jaspi's JaspiTest errors on a Geronimo/JAXB NoClassDefFound before reaching any auth code.
Two things to be aware of