CVE-2024-4772
NoneCVSS
—
EPSS
0.2%
Published
May 14, 2024
CISA due date
—
Cloudanix analysis
A browser login protection used easily guessed secret values that could let attackers impersonate users and access accounts.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Moderate
- Impact
- Privilege Gain
- Component
- Application
- Class
- Cryptographic Weakness
- Remediation
- Upgrade
- Effort
- Low
- Patch risk
- Low
What it actually does
HTTP digest authentication nonce values generated via rand() produce predictable outputs, enabling attackers to anticipate nonces and craft valid authentication responses.
Why it matters to the business
Affected browser users face elevated risk of authentication bypass, potentially exposing protected web resources and user sessions to unauthorized access.
How an attack unfolds
An attacker monitors digest authentication exchanges, predicts future nonce values based on the weak random source, and forges replayable responses to authenticate without valid credentials.
How to fix it
Upgrade affected Firefox installations to version 126 or later to replace the weak nonce generation with a cryptographically secure implementation.
How to confirm the fix worked
Confirm deployed Firefox versions are 126 or newer; perform targeted authentication tests to verify nonce unpredictability under repeated requests.
Typical attack path
- Capture digest authentication requests containing nonces
- Analyze rand() output patterns to predict subsequent nonces
- Compute valid digest responses for predicted nonces
- Replay forged responses to bypass authentication
How to detect it
Examine web server access logs for repeated authentication attempts with varying nonces or unexpected success rates following observed requests; correlate with client browser version data.
What your security team should do
- Immediately deploy Firefox 126 or later across all managed endpoints
- Review web server authentication logs for anomalous success patterns
- Consider temporary network-level controls on digest auth endpoints until patches are applied
The record
An HTTP digest authentication nonce value was generated using `rand()` which could lead to predictable values. This vulnerability affects Firefox < 126.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Ubuntu:18.04:LTS | mozjs38 | 0 | No fix |
| Ubuntu:18.04:LTS | mozjs52 | 0 | No fix |
| Ubuntu:20.04:LTS | firefox | 0 | 126.0+build2-0ubuntu0.20.04.1 |
| Ubuntu:20.04:LTS | mozjs52 | 0 | No fix |
| Ubuntu:20.04:LTS | mozjs68 | 0 | No fix |
| Ubuntu:22.04:LTS | mozjs102 | 0 | No fix |
| Ubuntu:22.04:LTS | mozjs78 | 0 | No fix |
| Ubuntu:22.04:LTS | mozjs91 | 0 | No fix |
| Ubuntu:24.04:LTS | mozjs102 | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | mozjs38 | 0 | No fix |
| Ubuntu:Pro:18.04:LTS | mozjs52 | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | mozjs52 | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | mozjs68 | 0 | No fix |
| openSUSE:Tumbleweed | MozillaFirefox | 0 | 126.0-1.1 |
| openSUSE:Tumbleweed | firefox-esr | 0 | 128.5.1-1.1 |
Related vulnerabilities
- CVE-2025-0243 Memory safety bugs present in Firefox 133, Thunderbird 133, Firefox ESR 128.5, and… Also affects mozjs38
- CVE-2025-0237 The WebChannel API, which is used to transport various information across processes, did… Also affects mozjs38
- CVE-2025-0238 Assuming a controlled failed memory allocation, an attacker could have caused a… Also affects mozjs38
- CVE-2025-0240 Parsing a JavaScript module as JSON could, under some circumstances, cause… Also affects mozjs38
- CVE-2025-0239 When using Alt-Svc, ALPN did not properly validate certificates when the original server… Also affects mozjs38
- CVE-2025-0241 When segmenting specially crafted text, segmentation would corrupt memory leading to a… Also affects mozjs38
- CVE-2025-0242 Memory safety bugs present in Firefox 133, Thunderbird 133, Firefox ESR 115.18, Firefox… Also affects mozjs38
- CVE-2024-11704 A double-free issue could have occurred in `sec_pkcs7_decoder_start_decrypt()` when… Also affects mozjs38