9.8

CVE-2022-40138: facebook hermes

CVSS: 9.8v3.1CriticalModified
Published 11-10-2022Last modified 03-08-2024

Vulnerability summary

CVE-2022-40138 is a critical (CVSS 9.8) vulnerability in facebook hermes. EPSS estimates a 1.18% chance of exploitation in the next 30 days, higher than 67.3% of scored vulnerabilities.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.8/10
010
Critical · v3.1 (NVD)
EPSS score
1.18%
0%100%
Low · +0.19 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Timeline

  1. 11-10-2022
    PublishedVulnerability first disclosed.
  2. 03-08-2024
    Last modifiedVulnerability information updated.

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 metrics

1 score · 1 source · 1 version

EPSS trend

Probability

1.18%

Chance of exploitation in the next 30 days

Percentile

67%

Versus all other CVEs

30-day change

+0.19 pp

From 0.99% on 20-09-2026

20-09-202620-10-2026
EPSS score
1.18%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Facebook1 product
  • hermes≥ unspecified, < commit prior to 6aa825e480d48127b480b08d13adf70033237097 | < 2022-09-27

1 vendor · 1 product

References

2 links