CVE-2022-40138 Details
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.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/facebook/hermes/commit/6aa825e480d48127b480b08d13adf70033237097 | CVE | PatchThird Party Advisory |
| https://www.facebook.com/security/advisories/CVE-2022-40138 | CVE | Vendor Advisory |
| https://github.com/facebook/hermes/commit/6aa825e480d48127b480b08d13adf70033237097 | [email protected] | PatchThird Party Advisory |
| https://www.facebook.com/security/advisories/CVE-2022-40138 | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-681 | Incorrect Conversion between Numeric Types | [email protected] |
| CWE-681 | Incorrect Conversion between Numeric Types | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| facebook hermes | < 2022-09-27 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Nov 21, 2024 | CVE Modified | CVE |
| May 14, 2024 | CVE Modified | [email protected] |
| Oct 11, 2022 | Initial Analysis | [email protected] |