CVE-2022-40138
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.
Does this matter?
High impact if exploited, but EPSS currently rates exploitation as unlikely (0.96%). Schedule it in the normal patch cycle and watch for a rise in EPSS or a public exploit.
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.
- CVSS 3.1
- 9.8 CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS
- 0.96% probability · 60th percentile
- CISA KEV
- Not listed
- Weakness
- CWE-681
- Affected
- facebook/hermes
- Source
- cve-assign@fb.com
References
- https://github.com/facebook/hermes/commit/6aa825e480d48127b480b08d13adf70033237097Patch, Third Party Advisory
- https://www.facebook.com/security/advisories/CVE-2022-40138Vendor Advisory
- https://github.com/facebook/hermes/commit/6aa825e480d48127b480b08d13adf70033237097Patch, Third Party Advisory
- https://www.facebook.com/security/advisories/CVE-2022-40138Vendor Advisory
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.