First published: Tue Oct 11 2022(Updated: )
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.
Credit: cve-assign@fb.com
Affected Software | Affected Version | How to fix |
---|---|---|
Facebook Hermes | <2022-09-27 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
The severity of CVE-2022-40138 is critical.
CVE-2022-40138 affects the Facebook Hermes software prior to version 2022-09-27.
Yes, CVE-2022-40138 is exploitable and can be used to perform Out-Of-Bounds operations and execute arbitrary code.
To fix CVE-2022-40138, update the affected software to version 2022-09-27 or later.
More information about CVE-2022-40138 can be found in the references: [GitHub commit](https://github.com/facebook/hermes/commit/6aa825e480d48127b480b08d13adf70033237097) and [Facebook Security Advisories](https://www.facebook.com/security/advisories/CVE-2022-40138).