CVE-2024-5701
Critical · 9.8CVSS
9.8
EPSS
0.6%
Published
Jun 11, 2024
CISA due date
—
Cloudanix analysis
A flaw in the browser could let attackers take over a user's computer simply by getting them to visit a malicious website.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Moderate
- Impact
- Remote Code Execution
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Multiple memory safety issues in the browser engine resulting in memory corruption that can be leveraged for arbitrary code execution with no user interaction required beyond visiting a malicious page.
Why it matters to the business
Attackers could gain full control over affected user systems, enabling theft of credentials, installation of persistent malware, or use of compromised machines for further attacks; low urgency due to absence of known exploitation and stable low exploit probability.
How an attack unfolds
An attacker hosts or compromises a website containing specially crafted content that triggers one of the memory corruption conditions during page rendering or JavaScript execution, allowing the attacker to overwrite memory structures and redirect execution flow to attacker-controlled code.
How to fix it
Upgrade all instances to Firefox 127 or later; enable automatic updates and verify version after deployment.
How to confirm the fix worked
Query installed browser versions across the environment and confirm presence of the 127 release or newer; review update logs for successful deployment.
Typical attack path
- Attacker prepares and hosts malicious webpage or injects payload into compromised site
- Victim browser loads the page and processes the crafted content
- Memory corruption is triggered leading to control-flow hijacking
- Arbitrary native code is executed within the browser process context
How to detect it
Review browser crash reports and process creation logs for unexpected child processes spawned from the browser; correlate with web proxy logs showing visits to newly registered or suspicious domains around the time of anomalies.
What your security team should do
- Apply the browser update to version 127 or later as the primary remediation
- Monitor public exploit development and EPSS trend for any future increase in risk
- Educate users on avoiding untrusted websites until patches are applied
The record
Memory safety bugs present in Firefox 126. Some of these bugs showed evidence of memory corruption and we presume that with enough effort some of these could have been exploited to run arbitrary code. This vulnerability affects Firefox < 127.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Chainguard | firefox | 0 | 127.0.2-r0 |
| Ubuntu:18.04:LTS | mozjs38 | 0 | No fix |
| Ubuntu:18.04:LTS | mozjs52 | 0 | No fix |
| Ubuntu:20.04:LTS | firefox | 0 | 127.0.2+build1-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 |
| Wolfi | firefox | 0 | 127.0.2-r0 |
| openSUSE:Tumbleweed | MozillaFirefox | 0 | 127.0-1.1 |
| openSUSE:Tumbleweed | firefox-esr | 0 | 128.5.1-1.1 |
Related vulnerabilities
- CVE-2026-4726 Denial-of-service in the XML component. Also affects firefox
- CVE-2026-4724 Undefined behavior in the Audio/Video component. Also affects firefox
- CVE-2026-4729 Memory safety bugs present in Firefox 148 and Thunderbird 148. Also affects firefox
- CVE-2026-4722 Privilege escalation in the IPC component. Also affects firefox
- CVE-2026-4723 Use-after-free in the JavaScript Engine component. Also affects firefox
- CVE-2026-4727 Denial-of-service in the Libraries component in NSS. Also affects firefox
- CVE-2026-4728 Spoofing issue in the Privacy: Anti-Tracking component. Also affects firefox
- CVE-2026-4725 Sandbox escape due to use-after-free in the Graphics: Canvas2D component. Also affects firefox