CVE-2022-40138: facebook hermes
Vulnerability summary
CVE-2022-40138 is a critical (CVSS 9.8) vulnerability in facebook hermes. EPSS estimates a 1.18% chance of exploitation in the next 30 days, higher than 67.3% of scored vulnerabilities.
Timeline
- 11-10-2022PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
1 score · 1 source · 1 versionEPSS trend
Probability
1.18%
Chance of exploitation in the next 30 days
Percentile
67%
Versus all other CVEs
30-day change
+0.19 pp
From 0.99% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Facebook1 product
- hermes≥ unspecified, < commit prior to 6aa825e480d48127b480b08d13adf70033237097 | < 2022-09-27
1 vendor · 1 product
References
2 links- www.facebook.com/security/advisories/CVE-2022-40138Vendor Advisory