CVE-2022-40138
Dashboard / Vulnerabilities / CVE-2022-40138
CVE-2022-40138
Published: 11 Oct 2022Last Modified: 12 Aug 2026
Summary:
Details: 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.
References: https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/40xxx/CVE-2022-40138.json, https://nvd.nist.gov/vuln/detail/CVE-2022-40138, https://www.facebook.com/security/advisories/CVE-2022-40138, https://github.com/facebook/hermes/commit/6aa825e480d48127b480b08d13adf70033237097
Affected packages
Package
Name:
Purl:
Affected ranges
Affected versions
v0.12.0
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
