CVE-2024-4771
High · 8.6CVSS
8.6
EPSS
0.5%
Published
May 14, 2024
CISA due date
—
Cloudanix analysis
A missing safety check in memory handling could let an attacker remotely take control of or crash the application.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Moderate
- Impact
- Remote Code Execution
- Component
- Application
- Class
- Use After Free
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Missing memory allocation check triggers use-after-free on failure, enabling potential code execution or application crash in network-facing code paths.
Why it matters to the business
Remote attackers could execute arbitrary code or cause denial of service on affected systems, leading to data exposure, system compromise, and operational disruption for organizations relying on the software.
How an attack unfolds
An attacker sends specially crafted network input that forces a memory allocation to fail; without the missing check the freed object is later reused, allowing the attacker to corrupt memory and potentially achieve code execution.
How to fix it
Upgrade to a release containing the allocation check (Firefox 126 or later) and ensure all instances receive the update promptly.
How to confirm the fix worked
Confirm the installed version meets or exceeds the fixed release; review changelog entries for the memory allocation fix and test affected code paths under allocation-failure conditions.
Typical attack path
- Deliver malicious content via network request to the vulnerable component
- Trigger allocation failure through resource exhaustion or malformed data
- Reuse dangling pointer to corrupt memory layout
- Execute arbitrary code or trigger crash
How to detect it
Search application and system logs for unexpected crashes or memory-related errors around the time of suspicious network activity; correlate with inbound traffic patterns that could induce allocation failures.
What your security team should do
- Apply the vendor update to all instances within the standard change window
- Monitor for post-patch stability issues in high-traffic environments
- Review network exposure of affected components and apply least-privilege controls
The record
A memory allocation check was missing which would lead to a use-after-free if the allocation failed. This could have triggered a crash or potentially be leveraged to achieve code execution. 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