Vulnerability · Published Jan 15, 2022 · Assigned by facebook

CVE-2021-24044

Critical 9.8

In plain English

A critical-severity type confusion in Hermes from Facebook. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 1.3% (higher than 70% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)9.8Critical
Exploit odds (30 days)1.3%top 30.3% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known

Official description

By passing invalid javascript code where await and yield were called upon non-async and non-generator getter/setter functions, Hermes would invoke generator functions and error out on invalid await/yield positions. This could result in segmentation fault as a consequence of type confusion error, with a low chance of RCE. This issue affects Hermes versions prior to v0.10.0.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
npmhermes-engine0.10.0GHSA-7mhc-prgv-r3q4

Affected products (as reported)

VendorProductVersions
Facebook Hermes unspecified – before 0.10.0

Weakness: CWE-843

References