CVE-2022-40138: Critical severity Facebook Hermes vulnerability
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 Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Patch 6aa825e480d48127b480b08d13adf70033237097
Event History
Frequently Asked Questions
What is the severity of CVE-2022-40138?
The severity of CVE-2022-40138 is critical.
How does CVE-2022-40138 affect the affected software?
CVE-2022-40138 affects the Facebook Hermes software prior to version 2022-09-27.
Is CVE-2022-40138 exploitable?
Yes, CVE-2022-40138 is exploitable and can be used to perform Out-Of-Bounds operations and execute arbitrary code.
How can I fix CVE-2022-40138?
To fix CVE-2022-40138, update the affected software to version 2022-09-27 or later.
Where can I find more information about CVE-2022-40138?
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).