CVE-2022-40138

published 11 Oct 2022 · updated 3 Aug 2024

An integer conversion error in Hermes bytecode generation, prior to commit 6aa825e480d48127b480b08d13adf70033237097, could have been used…

5.0MediumEPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in commit prior to 6aa825e480d48127b480b08d13adf70033237097.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Facebook<commit prior to 6aa825e480d48127b480b08d13adf70033237097commit prior to 6aa825e480d48127b480b08d13adf70033237097

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-40138 severity on Zeptric[![CVE-2022-40138](https://zeptric.io/badge/cve/CVE-2022-40138.svg)](https://zeptric.io/cve/CVE-2022-40138)