CVE-2023-5175
Critical · 9.8CVSS
9.8
EPSS
1.0%
Published
Sep 27, 2023
CISA due date
—
Cloudanix analysis
An old flaw in Firefox could let a website take control of a person's browser by misusing memory that should have been cleaned up when the browser closed.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Full Compromise
- Component
- Application
- Class
- Use After Free
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Use-after-free in ImageBitmap object handling during Firefox process shutdown allows a freed object to be accessed from a separate code path, resulting in memory corruption that can be leveraged for arbitrary code execution.
Why it matters to the business
Attackers could remotely compromise user systems running outdated Firefox versions, leading to data theft, malware deployment, or loss of browser session integrity; the vulnerability has existed for over three years with modest but rising exploit probability.
How an attack unfolds
An attacker crafts web content that forces creation of an ImageBitmap object, then triggers browser process shutdown while a parallel code path retains a reference to the soon-to-be-freed object, converting the resulting crash into code execution.
How to fix it
Upgrade all Firefox installations to version 118 or newer; enable automatic updates and verify the installed version via about:support or enterprise management tools.
How to confirm the fix worked
Confirm Firefox version is 118 or greater; monitor for absence of related crash reports containing ImageBitmap references in about:crashes after the update window.
Typical attack path
- Deliver malicious webpage or extension content to a Firefox user
- Trigger ImageBitmap allocation during normal page processing
- Initiate or force browser process shutdown sequence
- Reuse dangling pointer from the alternate code path to corrupt memory
- Execute arbitrary code or achieve sandbox escape
How to detect it
Search browser crash reports and telemetry for ImageBitmap objects referenced after shutdown signals; review process termination logs around the time of unexpected Firefox exits.
What your security team should do
- Immediately deploy Firefox 118+ across all managed endpoints
- Prioritize user populations with high browser exposure or sensitive data access
- Review endpoint crash telemetry for ImageBitmap shutdown signatures in the interim
The record
During process shutdown, it was possible that an `ImageBitmap` was created that would later be used after being freed from a different codepath, leading to a potentially 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