CVE-2022-40138 json
An integer conversion error in Hermes bytecode generation, prior to commit 6aa825e480d48127b480b08d13adf70033237097, could have been used t…
published 2022-10-11 4 y ago modified 2026-06-17 4 mo ago also EUVD-2022-43456
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.2%
- EPSS 1.2% chance of exploitation in 30 days, percentile 68%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Facebook Hermes commit prior to 6aa825e480d48127b480b08d13adf70033237097
Exploit prediction
1.21% chance of exploitation in the next 30 days, higher than 68% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected products
- Facebook Hermes
Classification
- Weakness
-
- CWE-681 Incorrect Conversion between Numeric Types
References
-
github.com
/facebook/hermes/commit/6aa825e480d48127b480b08d13adf70033237097
patch, third-party-advisory
-
facebook.com
/security/advisories/CVE-2022-40138
vendor-advisory
Sources
- CVE List CVE-2022-40138
- NVD CVE-2022-40138
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.