CVE-2023-5172
Critical · 9.8CVSS
9.8
EPSS
1.0%
Published
Sep 27, 2023
CISA due date
—
Cloudanix analysis
A problem inside the Firefox browser could let a harmful website take over a user's computer without any clicks or warnings.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Remote Code Execution
- Component
- Application
- Class
- Use After Free
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
A hashtable in the Ion Engine could have been mutated while there was a live interior reference, leading to a potential use-after-free and exploitable crash in the JIT compiler.
Why it matters to the business
Remote attackers could achieve arbitrary code execution on user systems running outdated Firefox versions, enabling data theft, malware deployment, or full host compromise without user interaction; high prevalence of the browser increases organizational exposure risk.
How an attack unfolds
An attacker serves a malicious webpage containing crafted JavaScript that triggers hashtable mutation during Ion Engine compilation, resulting in a use-after-free condition that corrupts memory and allows control-flow hijacking for code execution.
How to fix it
Upgrade Mozilla Firefox to version 118 or later to resolve the use-after-free in the Ion Engine.
How to confirm the fix worked
Confirm all instances report version 118 or higher; retest affected JavaScript workloads for stability and absence of exploitable crashes.
Typical attack path
- Serve malicious webpage to target browser
- Trigger Ion Engine JIT compilation via JavaScript
- Mutate hashtable while holding live interior reference
- Exploit resulting use-after-free for memory corruption
- Achieve arbitrary code execution
How to detect it
Review browser crash logs for Ion Engine faults; inspect web proxy logs for unusual JavaScript patterns that may trigger hashtable operations; correlate with endpoint process anomalies.
What your security team should do
- Immediately deploy Firefox 118+ across all endpoints
- Enforce automatic browser updates via policy
- Monitor crash reports for Ion Engine anomalies
- Consider browser isolation controls for high-risk users
The record
A hashtable in the Ion Engine could have been mutated while there was a live interior reference, leading to a potential use-after-free and exploitable crash. This vulnerability affects Firefox < 118.
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 | 118.0.1+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 |
| Ubuntu:Pro:22.04:LTS | mozjs78 | 0 | No fix |
| Ubuntu:Pro:24.04:LTS | mozjs102 | 0 | No fix |
| openSUSE:Tumbleweed | MozillaFirefox | 0 | 118.0.1-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