Hermes JS Engine Use-After-Free via Bytecode Optimizer
CVE-2023-28081 Published on May 18, 2023
A bytecode optimization bug in Hermes prior to commit e6ed9c1a4b02dc219de1648f44cd808a56171b81 could be used to cause an use-after-free and obtain arbitrary code execution via a carefully crafted payload. Note that this is only exploitable in cases where Hermes is used to execute untrusted JavaScript. Hence, most React Native applications are not affected.
Vulnerability Analysis
CVE-2023-28081 can be exploited with network access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. The potential impact of an exploit of this vulnerability is considered to be critical as this vulnerability has a high impact to the confidentiality, integrity and availability of this component.
Weakness Type
What is a Dangling pointer Vulnerability?
Referencing memory after it has been freed can cause a program to crash, use unexpected values, or execute code.
CVE-2023-28081 has been classified to as a Dangling pointer vulnerability or weakness.
Products Associated with CVE-2023-28081
You can be notified by email with stack.watch whenever vulnerabilities like CVE-2023-28081 are published in Facebook Hermes:
Affected Versions
Facebook Hermes:- Before e6ed9c1a4b02dc219de1648f44cd808a56171b81 is affected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.