Incorrect numeric conversion in Meta Hermes
Priority MEDIUM 44CWE-681Published · Updated
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA.
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.
Why it matters now
EPSS 0.01212 68th percentileScored 2026-11-07
Fix Fixed Hermes (Facebook): commit prior to 6aa825e480d48127b480b08d13adf70033237097
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Meta | Hermes | before commit prior to 6aa825e480d48127b480b08d13adf70033237097 | commit prior to 6aa825e480d48127b480b08d13adf70033237097 | Patch available | CNA |
- Hermes VendorMeta Affected before commit prior to 6aa825e480d48127b480b08d13adf70033237097 Fixed in commit prior to 6aa825e480d48127b480b08d13adf70033237097 Patch available CNA
Remediation
- Fix · CNA Hermes (Facebook) Fixed in commit prior to 6aa825e480d48127b480b08d13adf70033237097
Timeline
- 2026-10-02 Threatist record created from CVE-2022-40138
- 2026-10-03 Alias added: GHSA-qg8w-6wvf-6vp6
References
More Meta Hermes vulnerabilities
- TI-2023-14306 Use after free in Meta Hermes CVSS 3.1CRITICAL 9.8
- TI-2023-12661 Use after free in Meta Hermes CVSS 3.1CRITICAL 9.8
- TI-2023-11181 Type confusion in Meta Hermes CVSS 3.1CRITICAL 9.8
- TI-2023-09388 Type confusion in Meta Hermes CVSS 3.1CRITICAL 9.8
- TI-2023-09387 Out-of-bounds write in Meta Hermes CVSS 3.1CRITICAL 9.8
- TI-2020-01841 A logic vulnerability when handling the SaveGeneratorLong instruction in Facebook Hermes… CVSS 3.1CRITICAL 9.8
Sources
- CVE-2022-40138 · CVE Program
- CVE-2022-40138 · NVD
- FIRST EPSS
- GHSA-qg8w-6wvf-6vp6 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences