Vulnerability · Published Oct 11, 2022 · Assigned by facebook

CVE-2022-40138

Critical 9.8

In plain English

A critical-severity security flaw in Hermes from Facebook. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.2% (higher than 69% of all known vulnerabilities).

Severity (CVSS NVD)9.8Critical
Exploit odds (30 days)1.2%top 31.4% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

An integer conversion error in Hermes bytecode generation, prior to commit 6aa825e480d48127b480b08d13adf70033237097, could have been used to perform Out-Of-Bounds operations and subsequently execute arbitrary code. Note that this is only exploitable in cases where Hermes is used to execute untrusted JavaScript. Hence, most React Native applications are not affected.

Affected products (as reported)

VendorProductVersions
Facebook Hermes unspecified – before commit prior to 6aa825e480d48127b480b08d13adf70033237097

Weakness: CWE-681

References