Skip to content
OpenAdvisories
Critical · 9.8 CVE-2021-24044 EUVD-2022-0501GHSA-7mhc-prgv-r3q4

Access of Resource Using Incompatible Type in Hermes

Published Jan 15, 2022 · Updated Aug 3, 2024 · Assigned by facebook

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 products

VendorProductAffectedFixed
Facebook Hermes unspecified – < 0.10.0 0.10.0

Affected packages

EcosystemPackageAffectedFixedRecord
npm hermes-engine < 0.10.0 0.10.0 GHSA-7mhc-prgv-r3q4

References