Live threats

All CVEs / Facebook

CVE-2022-40138Facebook Hermes

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
1.5%
probability of exploitation in 30 days · percentile 74
Auth required
No
Published
Oct 11, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-681
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Hermes.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
facebookhermes< 2022-09-27

Official sources

References

Links published by the sources. Open them with care.