CVE-2024-3856
High · 8.8CVSS
8.8
EPSS
0.6%
Published
Apr 16, 2024
CISA due date
—
Cloudanix analysis
A flaw in older versions of the Firefox browser could let a malicious website take control of a user's computer if they visit the site.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Moderate
- Impact
- Remote Code Execution
- Component
- Application
- Class
- Use After Free
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Use-after-free condition during WebAssembly array creation when garbage collection interrupts execution, allowing memory corruption in the browser process.
Why it matters to the business
Attackers could execute arbitrary code or steal data from users running outdated browser versions, leading to compromised endpoints and potential data breaches across the user base.
How an attack unfolds
An attacker hosts a malicious webpage containing specially crafted WebAssembly code; when the victim visits the page, garbage collection during array creation triggers the use-after-free, enabling memory manipulation and code execution.
How to fix it
Update affected Firefox installations to version 125 or later as soon as possible; enable automatic updates where feasible and audit any embedded or enterprise-managed browser deployments.
How to confirm the fix worked
Verify browser version is 125 or higher; test WebAssembly execution paths under simulated garbage collection pressure in a controlled environment to confirm absence of the use-after-free condition.
Typical attack path
- Attacker crafts and hosts malicious webpage with WebAssembly payload
- Victim is lured to the page via phishing or compromised site
- Browser loads and executes the WebAssembly module
- Garbage collection interrupts array creation triggering the flaw
- Attacker gains memory corruption primitive leading to code execution
How to detect it
Search browser process crash logs and telemetry for unexpected terminations during WebAssembly execution; review web proxy logs for access to suspicious domains hosting WebAssembly content around the time of any anomalous browser behavior.
What your security team should do
- Prioritize immediate browser updates for all endpoints given high CVSS and remote attack vector
- Monitor EPSS score for any upward trend indicating increased exploit likelihood
- Implement web filtering or browser isolation for high-risk user populations until patches are deployed
- Review internal web application usage of WebAssembly for similar patterns
The record
A use-after-free could occur during WASM execution if garbage collection ran during the creation of an array. This vulnerability affects Firefox < 125.
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 | 125.0.2+build1-0ubuntu0.20.04.2 |
| 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 |
| Ubuntu:Pro:22.04:LTS | mozjs78 | 0 | No fix |
| Ubuntu:Pro:24.04:LTS | mozjs102 | 0 | No fix |
| openSUSE:Tumbleweed | MozillaFirefox | 0 | 125.0.2-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