CVEvulnerability
CVE-2022-40138
9.8 CRITICAL
Official page ↗
- Status
- Modified
- Published
- 2022-10-11
- Last modified
- 2026-06-17
- Assigner
- [email protected]
- CVSS 3.1 ([email protected])
- 9.8 CRITICAL — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-681
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.
Affected configurations
• facebook hermes (< 2022-09-27)
Related
Weakness · CWE (1)
- CWE-681 Incorrect Conversion between Numeric Types weakness
References
- https://github.com/facebook/hermes/commit/6aa825e480d48127b480b08d13adf70033237097 Patch, Third Party Advisory
- https://www.facebook.com/security/advisories/CVE-2022-40138 Vendor Advisory
- https://github.com/facebook/hermes/commit/6aa825e480d48127b480b08d13adf70033237097 Patch, Third Party Advisory
- https://www.facebook.com/security/advisories/CVE-2022-40138 Vendor Advisory