org.asynchttpclient:async-http-client: AsyncHttpClient: Digest authentication cnonce generated with a non-cryptographic random source
What fixes it
- 3.0.12org.asynchttpclient:async-http-client, mavenGitHub
<dependency><groupId>org.asynchttpclient</groupId><artifactId>async-http-client</artifactId><version>3.0.12</version></dependency> - 2.16.1org.asynchttpclient:async-http-client, mavenGitHub
<dependency><groupId>org.asynchttpclient</groupId><artifactId>async-http-client</artifactId><version>2.16.1</version></dependency> - 3.0.12org.asynchttpclient:async-http-client, MavenOSV
<dependency><groupId>org.asynchttpclient</groupId><artifactId>async-http-client</artifactId><version>3.0.12</version></dependency> - 2.16.1org.asynchttpclient:async-http-client, MavenOSV
<dependency><groupId>org.asynchttpclient</groupId><artifactId>async-http-client</artifactId><version>2.16.1</version></dependency>
A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.
Description
Impact
The client nonce used in HTTP Digest authentication was generated from ThreadLocalRandom, a fast but non-cryptographic pseudorandom number generator. RFC 7616 section 3.3 requires the cnonce to be unpredictable, since it is part of what protects the Digest exchange against chosen-plaintext and precomputation attacks on the credentials. An attacker able to observe or influence enough of the generator's output could reduce the unpredictability the protocol depends on. NTLM (and, on the 3.x line, SCRAM) in this client already use SecureRandom for their own nonces; Digest did not.
Affected versions
- 3.x: up to and including 3.0.11
- 2.x: up to and including 2.16.0
Patches
Fixed in 3.0.12 on the 3.x line and in 2.16.1 on the 2.x line. The cnonce is now generated with SecureRandom, matching the other authentication schemes in the client.
Workarounds
None available from application code.
Details
Realm.Builder's cnonce generation seeded its bytes from ThreadLocalRandom.current() rather than a SecureRandom instance.
Text from GitHub Advisory Database
Affected versions 68
- org.asynchttpclient:async-http-client, maven>= 3.0.0, <= 3.0.11GitHub
- org.asynchttpclient:async-http-client, maven>= 2.0.0, <= 2.16.0GitHub
- async-http-clientaffected: >= 3.0.0, < 3.0.12CVE List
- async-http-clientaffected: >= 2.0.0, < 2.16.1CVE List
- org.asynchttpclient:async-http-client, Mavenfrom 3.0.0, fixed in 3.0.12OSV
- org.asynchttpclient:async-http-client, Maven3.0.0OSV
- org.asynchttpclient:async-http-client, Maven3.0.1OSV
- org.asynchttpclient:async-http-client, Maven3.0.10OSV
- org.asynchttpclient:async-http-client, Maven3.0.11OSV
- org.asynchttpclient:async-http-client, Maven3.0.2OSV
- org.asynchttpclient:async-http-client, Maven3.0.3OSV
- org.asynchttpclient:async-http-client, Maven3.0.4OSV
- org.asynchttpclient:async-http-client, Maven3.0.5OSV
- org.asynchttpclient:async-http-client, Maven3.0.6OSV
- org.asynchttpclient:async-http-client, Maven3.0.7OSV
- org.asynchttpclient:async-http-client, Maven3.0.8OSV
- org.asynchttpclient:async-http-client, Maven3.0.9OSV
- org.asynchttpclient:async-http-client, Mavenfrom 2.0.0, fixed in 2.16.1OSV
- org.asynchttpclient:async-http-client, Maven2.0.0OSV
- org.asynchttpclient:async-http-client, Maven2.0.1OSV
- org.asynchttpclient:async-http-client, Maven2.0.10OSV
- org.asynchttpclient:async-http-client, Maven2.0.11OSV
- org.asynchttpclient:async-http-client, Maven2.0.12OSV
- org.asynchttpclient:async-http-client, Maven2.0.13OSV
- org.asynchttpclient:async-http-client, Maven2.0.14OSV
- org.asynchttpclient:async-http-client, Maven2.0.15OSV
- org.asynchttpclient:async-http-client, Maven2.0.16OSV
- org.asynchttpclient:async-http-client, Maven2.0.17OSV
- org.asynchttpclient:async-http-client, Maven2.0.18OSV
- org.asynchttpclient:async-http-client, Maven2.0.19OSV
- org.asynchttpclient:async-http-client, Maven2.0.2OSV
- org.asynchttpclient:async-http-client, Maven2.0.20OSV
- org.asynchttpclient:async-http-client, Maven2.0.21OSV
- org.asynchttpclient:async-http-client, Maven2.0.22OSV
- org.asynchttpclient:async-http-client, Maven2.0.23OSV
- org.asynchttpclient:async-http-client, Maven2.0.24OSV
- org.asynchttpclient:async-http-client, Maven2.0.25OSV
- org.asynchttpclient:async-http-client, Maven2.0.26OSV
- org.asynchttpclient:async-http-client, Maven2.0.27OSV
- org.asynchttpclient:async-http-client, Maven2.0.28OSV
- org.asynchttpclient:async-http-client, Maven2.0.29OSV
- org.asynchttpclient:async-http-client, Maven2.0.3OSV
- org.asynchttpclient:async-http-client, Maven2.0.30OSV
- org.asynchttpclient:async-http-client, Maven2.0.31OSV
- org.asynchttpclient:async-http-client, Maven2.0.32OSV
- org.asynchttpclient:async-http-client, Maven2.0.33OSV
- org.asynchttpclient:async-http-client, Maven2.0.34OSV
- org.asynchttpclient:async-http-client, Maven2.0.35OSV
- org.asynchttpclient:async-http-client, Maven2.0.36OSV
- org.asynchttpclient:async-http-client, Maven2.0.37OSV
- org.asynchttpclient:async-http-client, Maven2.0.38OSV
- org.asynchttpclient:async-http-client, Maven2.0.39OSV
- org.asynchttpclient:async-http-client, Maven2.0.4OSV
- org.asynchttpclient:async-http-client, Maven2.0.40OSV
- org.asynchttpclient:async-http-client, Maven2.0.5OSV
- org.asynchttpclient:async-http-client, Maven2.0.6OSV
- org.asynchttpclient:async-http-client, Maven2.0.7OSV
- org.asynchttpclient:async-http-client, Maven2.0.8OSV
- org.asynchttpclient:async-http-client, Maven2.0.9OSV
- org.asynchttpclient:async-http-client, Maven2.1.0OSV
- org.asynchttpclient:async-http-client, Maven2.1.0-RC1OSV
- org.asynchttpclient:async-http-client, Maven2.1.0-RC2OSV
- org.asynchttpclient:async-http-client, Maven2.1.0-RC3OSV
- org.asynchttpclient:async-http-client, Maven2.1.0-RC4OSV
- org.asynchttpclient:async-http-client, Maven2.1.0-alpha1OSV
- org.asynchttpclient:async-http-client, Maven2.1.0-alpha10OSV
- org.asynchttpclient:async-http-client, Maven2.1.0-alpha11OSV
- org.asynchttpclient:async-http-client, Maven2.1.0-alpha12OSV
References 7
- github.com/AsyncHttpClient/async-http-client/commit/dca2d90db87f0144ea893a6858dca13c426d06b6Fixvia CVE List
- github.com/AsyncHttpClient/async-http-client/commit/e1f5fc88fe211d3f64032c33b91093ba3d5e793dFixvia CVE List
- github.com/AsyncHttpClient/async-http-client/releases/tag/async-http-client-project-2.16.1Fixvia CVE List
- github.com/AsyncHttpClient/async-http-client/releases/tag/async-http-client-project-3.0.12Fixvia CVE List
- github.com/AsyncHttpClient/async-http-client/security/advisories/GHSA-mfj3-87qq-382vAdvisoryvia CVE List
- github.com/advisories/GHSA-mfj3-87qq-382vAdvisoryvia GitHub
- nvd.nist.gov/vuln/detail/CVE-2026-107283Referencevia GitHub