Privileged-memory disclosure via mismatched canvas surface mapping
Published Sep 27, 2023 · Updated Feb 13, 2025
Memory disclosure in Mozilla Firefox before 118 allows remote attackers to leak privileged-process heap data during canvas rendering. CanvasTranslator cached a DataSourceSurface with SetPreparedMap, but GetPreparedMap accepted a replacement surface sharing the same mapped surface and returned non-corresponding heap memory to the content process. A compromised content process and leakage of useful data are required; the exposed memory can supply information for a sandbox escape, with no reported direct write or service interruption.
Summary
What happened
Memory disclosure in Mozilla Firefox before 118 allows remote attackers to leak privileged-process heap data during canvas rendering. CanvasTranslator cached a DataSourceSurface with SetPreparedMap, but GetPreparedMap accepted a replacement surface sharing the same mapped surface and returned non-corresponding heap memory to the content process. A compromised content process and leakage of useful data are required; the exposed memory can supply information for a sandbox escape, with no reported direct write or service interruption.
The record
- CVE
- CVE-2023-5170
- Published
- Sep 27, 2023
- Updated
- Feb 13, 2025
- Vendor
- Mozilla
- Product
- Firefox
- Classifications
- CWE-401, T1211
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Sep 27, 2023CVE publishedPublication date reported by the CVE source.
- Feb 13, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=unspecified <118
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Bug 1846686 canvas leak reproducerproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo