VULNERABILITY INTELLIGENCE
CVE-2022-40138
CVSS score9.8 CRITICAL
EPSS probability1.21%
CISA KEVNot currently listed
Published2022-10-11
Last modified2026-06-17
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
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.
Weakness classification
- cve-assign@fb.com: CWE-681
- nvd@nist.gov: CWE-681
Primary references
- cve-assign@fb.com — Patch, Third Party Advisory
- cve-assign@fb.com — Vendor Advisory
- af854a3a-2127-422b-91ae-364da2661108 — Patch, Third Party Advisory
- af854a3a-2127-422b-91ae-364da2661108 — Vendor Advisory