Code execution via unchecked apply call frame
Published Feb 2, 2021 · Updated Aug 4, 2024
Stack overflow in builtin apply in Meta Platforms Hermes allows attackers to execute arbitrary code via crafted JavaScript. The hermesBuiltinApply function creates a native call frame from the argument count but fails to test whether that frame overflowed before copying arguments into it. Exploitation requires an application that evaluates untrusted JavaScript; most React Native applications do not expose that condition.
Summary
What happened
Stack overflow in builtin apply in Meta Platforms Hermes allows attackers to execute arbitrary code via crafted JavaScript. The hermesBuiltinApply function creates a native call frame from the argument count but fails to test whether that frame overflowed before copying arguments into it. Exploitation requires an application that evaluates untrusted JavaScript; most React Native applications do not expose that condition.
The record
- CVE
- CVE-2020-1896
- Published
- Feb 2, 2021
- Updated
- Aug 4, 2024
- Vendor
- Meta Platforms, Inc.
- Product
- Hermes
- Classifications
- CWE-787, CWE-121, T1203
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Feb 2, 2021CVE publishedPublication date reported by the CVE source.
- Aug 4, 2024Record 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=commit prior to 86543ac47e59c522976b5632b8bf9a2a4583c7d2
What conditions does exploitation require?
What is affected?
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
- Upstream stack-overflow apply regression inputproof 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