Vulnerability Details : CVE-2022-40138
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.
Vulnerability category: Execute code
Products affected by CVE-2022-40138
- cpe:2.3:a:facebook:hermes:*:*:*:*:*:*:*:*
Exploit prediction scoring system (EPSS) score for CVE-2022-40138
0.28%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 49 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2022-40138
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
9.8
|
CRITICAL | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
3.9
|
5.9
|
NIST |
CWE ids for CVE-2022-40138
-
When converting from one data type to another, such as long to integer, data can be omitted or translated in a way that produces unexpected values. If the resulting values are used in a sensitive context, then dangerous behaviors may occur.Assigned by:
- cve-assign@fb.com (Secondary)
- nvd@nist.gov (Primary)
References for CVE-2022-40138
-
https://github.com/facebook/hermes/commit/6aa825e480d48127b480b08d13adf70033237097
Re-sync with internal repository (#822) · facebook/hermes@6aa825e · GitHubPatch;Third Party Advisory
-
https://www.facebook.com/security/advisories/CVE-2022-40138
FacebookVendor Advisory
Jump to