Heap-memory disclosure via stale JavaScript string reference
Published Jun 11, 2024 · Updated Mar 14, 2025
Use-after-free in Mozilla Firefox before 127 allows remote attackers to read memory from the JavaScript string heap. AutoStableStringChars failed to retain the owning JavaScript string while JSONParser used its character buffer, leaving a stale reference after release. Triggering requires attacker-controlled JavaScript; observed accesses are reads only, and the address is confined to the string-heap partition and is not controllable.
Summary
What happened
Use-after-free in Mozilla Firefox before 127 allows remote attackers to read memory from the JavaScript string heap. AutoStableStringChars failed to retain the owning JavaScript string while JSONParser used its character buffer, leaving a stale reference after release. Triggering requires attacker-controlled JavaScript; observed accesses are reads only, and the address is confined to the string-heap partition and is not controllable.
The record
- CVE
- CVE-2024-5694
- Published
- Jun 11, 2024
- Updated
- Mar 14, 2025
- Vendor
- Mozilla
- Product
- Firefox
- Classifications
- CWE-416, T1189
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jun 11, 2024CVE publishedPublication date reported by the CVE source.
- Mar 14, 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 <127
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.
Public exploit references
No public exploit references are available in this record.
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