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.

NVD

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.

Attack Vector:
NETWORK
Attack Complexity:
LOW
Privileges Required:
NONE
User Interaction:
NONE
Scope:
UNCHANGED
Confidentiality Impact:
HIGH
Integrity Impact:
HIGH
Availability Impact:
HIGH

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:

Exploit Probability

EPSS
0.54%
Percentile
67.28%

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.