CVE-2023-5170
High · 7.4CVSS
7.4
EPSS
0.7%
Published
Sep 27, 2023
CISA due date
—
Cloudanix analysis
A flaw in older Firefox versions could let an attacker who already has some access inside the browser steal sensitive memory data and potentially reach other parts of the computer.
- Exploitation
- Requires User Interaction
- Attacker needs
- User Interaction
- Complexity
- Moderate
- Impact
- Privilege Gain
- Component
- Application
- Class
- Information Disclosure
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
A compromised content process could cause a surface to change unexpectedly during canvas rendering, resulting in a memory leak from a privileged process that may be leveraged for sandbox escape.
Why it matters to the business
Older browser installations could allow attackers to leak privileged memory and potentially escape the sandbox, raising the risk of data exposure or further system compromise across user bases running affected versions.
How an attack unfolds
An attacker first gains control of a content process, manipulates canvas rendering to induce an unexpected surface change, leaks privileged memory, and uses the leaked data to escape the sandbox.
How to fix it
Upgrade Mozilla Firefox to version 118 or later to resolve the canvas rendering memory leak.
How to confirm the fix worked
Confirm the installed Firefox version is 118 or newer; test canvas rendering paths under controlled conditions to verify absence of unexpected surface changes and memory leaks.
Typical attack path
- Gain control of a content process via malicious web content
- Trigger canvas rendering operations that alter surface state unexpectedly
- Exploit the resulting memory leak to obtain privileged data
- Use leaked data to achieve sandbox escape
How to detect it
Examine browser process logs and crash reports for canvas rendering anomalies or unexpected memory leaks; correlate with attempts to access privileged surfaces or sandbox violations.
What your security team should do
- Prioritize immediate upgrade of all Firefox instances to version 118 or later
- Review and enforce browser update policies across the organization
- Monitor endpoint logs for anomalous canvas-related memory behavior until updates are complete
The record
In canvas rendering, a compromised content process could have caused a surface to change unexpectedly, leading to a memory leak of a privileged process. This memory leak could be used to effect a sandbox escape if the correct data was leaked. 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