Advisory

GHSA-7mhc-prgv-r3q4

Also known as: CVE-2021-24044

Summary

Access of Resource Using Incompatible Type in Hermes

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-01-16 00:00 UTC
Modified
2023-11-08 04:05 UTC

Affected packages and fixes

hermes-engine

npm · All systems

Affected

  • introduced 0, fixed 0.10.0 (semver)

Fixed versions

0.10.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences