CVE-2022-40138
publishedHermes vulnerability
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| — | Hermesunspecified to < commit prior to 6aa825e480d48127b480b08d13adf70033237097 | Affected | Not stated |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Hermes | unspecified to < commit prior to 6aa825e480d48127b480b08d13adf70033237097 (affected · custom) | facebook · cna |
Weaknesses
1- CWE-681 CWE-681: Incorrect Conversion between Numeric Types
References
2Provider assertions
2facebook · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- fc4f1a30f86a35a9463a0e6397b767d974eee9aa8c869bddb00bd2727db95623
- Ingested
- 23 Sep 2026, 08:02:18 UTC
- Source record
- Official CVE record