CVE-2022-46884
High · 8.8CVSS
8.8
EPSS
0.5%
Published
Aug 24, 2023
CISA due date
—
Cloudanix analysis
A flaw in Firefox could let attackers take over the browser if someone visits a specially made webpage with certain images.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Moderate
- Impact
- Full Compromise
- Component
- Application
- Class
- Use After Free
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The vulnerability is a use-after-free in the SVG image handling code when the Refresh Driver is destroyed at an inopportune time, leading to memory corruption that can be leveraged for arbitrary code execution.
Why it matters to the business
Attackers could gain full control over a user's browser and potentially the underlying system by exploiting a crafted web page, risking data theft and unauthorized access across widely deployed Firefox installations.
How an attack unfolds
An attacker serves a malicious webpage containing SVG content designed to trigger the use-after-free condition during refresh driver destruction, allowing memory manipulation to execute arbitrary code in the browser process.
How to fix it
Upgrade Mozilla Firefox to version 106 or later to resolve the use-after-free in SVG image handling.
How to confirm the fix worked
Confirm installed Firefox version is 106 or higher and review browser release notes confirming inclusion of the SVG refresh driver fix.
Typical attack path
- Deliver malicious SVG content via web page
- Trigger refresh driver destruction at specific timing
- Exploit use-after-free for memory corruption
- Achieve arbitrary code execution within the browser
How to detect it
Review browser crash logs for SVG-related memory errors and monitor for unexpected process terminations after rendering web content.
What your security team should do
- Immediately update all Firefox deployments to version 106 or newer
- Scan environments for any remaining instances below version 106
- Monitor crash reports and anomalous browser behavior for residual risk
The record
A potential use-after-free vulnerability existed in SVG Images if the Refresh Driver was destroyed at an inopportune time. This could have lead to memory corruption or a potentially exploitable crash. *Note*: This advisory was added on December 13th, 2022 after discovering it was inadvertently left out of the original advisory. The fix was included in the original release of Firefox 106. This vulnerability affects Firefox < 106.
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 | 116.0+build2-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 |
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