CVE-2024-4778
Critical · 9.8CVSS
9.8
EPSS
0.4%
Published
May 14, 2024
CISA due date
—
Cloudanix analysis
A flaw in older versions of the Firefox browser family could let attackers take over a user's computer simply by getting them to visit a harmful web page.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Application
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Low
- Patch risk
- Low
What it actually does
Multiple memory safety issues in the browser engine that can result in memory corruption, enabling arbitrary code execution when triggered.
Why it matters to the business
Attackers could gain full control of a user's system by delivering malicious web content, leading to data theft, ransomware deployment, or further network compromise; high ecosystem prevalence of the affected browsers increases organizational exposure.
How an attack unfolds
An attacker hosts or injects specially crafted web content that triggers one of the memory corruption bugs during rendering or script execution, allowing the attacker to escape the sandbox and run arbitrary code on the victim's machine.
How to fix it
Upgrade firefox-esr to 115.2.0esr-1 or later and thunderbird to 1:115.2.0-1 or later on Debian 13; apply equivalent updates in all other distributions and products as soon as available.
How to confirm the fix worked
Query package managers or browser about dialogs to confirm installed versions meet or exceed the fixed releases listed above; re-scan systems after patching to verify absence of vulnerable versions.
Typical attack path
- Deliver malicious HTML/JS via phishing, compromised site, or drive-by download
- Victim browser processes the content and hits a memory safety flaw
- Corruption is leveraged to achieve code execution within the browser process
- Payload establishes persistence or exfiltrates data
How to detect it
Review browser crash logs, memory dumps, and process creation events around the time of suspected malicious page loads for signs of unexpected code execution or sandbox escapes; correlate with web proxy logs showing visits to suspicious domains.
What your security team should do
- Immediately prioritize patching of all firefox-esr and thunderbird instances to the fixed Debian package versions
- Block known malicious domains and enforce browser sandboxing policies
- Monitor EPSS and exploit maturity signals for any future increase in risk
The record
Memory safety bugs present in Firefox 125. 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 < 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