CVE-2022-40138
criticalpriority · track · 39EPSS 0.012 · 68 %ileEURUUSEPSS · scored 2026-10-27
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
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · high–critical · 7.3–9.8
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (3)
Products and version ranges known to be affected.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (7)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2022-40138/cnnvd
- https://github.com/facebook/hermes/commit/6aa825e480d48127b480b08d13adf70033237097cnnvd
- https://www.facebook.com/security/advisories/CVE-2022-40138cnnvd
- https://github.com/facebook/hermes/commit/6aa825e480d48127b480b08d13adf70033237097enisa_euvd
- https://www.facebook.com/security/advisories/CVE-2022-40138enisa_euvd
- https://github.com/facebook/hermes/commit/6aa825e480d48127b480b08d13adf70033237097PatchThird Party Advisorynvd
- https://www.facebook.com/security/advisories/CVE-2022-40138Vendor Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan