Code execution via unsound non-strict callsite inference
Published May 18, 2023 · Updated Jan 21, 2025
Use-after-free in Meta Platforms Hermes allows attackers to execute arbitrary code through optimized untrusted JavaScript. The optimizer's identifyCallsites analysis treats non-strict functions as having only direct call sites, despite arguments.callee creating indirect aliases, causing unsound bytecode type inference and freed-memory reuse. Exploitation requires an embedding that enables optimization and executes attacker-controlled JavaScript; most React Native applications do not meet that condition.
Summary
What happened
Use-after-free in Meta Platforms Hermes allows attackers to execute arbitrary code through optimized untrusted JavaScript. The optimizer's identifyCallsites analysis treats non-strict functions as having only direct call sites, despite arguments.callee creating indirect aliases, causing unsound bytecode type inference and freed-memory reuse. Exploitation requires an embedding that enables optimization and executes attacker-controlled JavaScript; most React Native applications do not meet that condition.
The record
- CVE
- CVE-2023-30470
- Published
- May 18, 2023
- Updated
- Jan 21, 2025
- Vendor
- Meta Platforms, Inc.
- Product
- Hermes
- Classifications
- CWE-416, T1059.007
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- May 18, 2023CVE publishedPublication date reported by the CVE source.
- Jan 21, 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=0 <da8990f737ebb9d9810633502f65ed462b819c09
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
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