CVE-2021-24044
JSON

9.8critical

Access of Resource Using Incompatible Type in Hermes

Severity
9.8critical CVSS:3.1 by NVD
Exploit likelihood
1.27% (higher than 70% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
facebook
Also known as
GHSA-7mhc-prgv-r3q4

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

Product or packageVersionsReported by
Facebook Hermesfrom unspecified before 0.10.0, before 0.10.0
Not affected: from 0.10.0 before unspecified
CVE List, NVD
hermes-engine (npm)before 0.10.0GitHub Advisory Database

All scores

GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

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.

NVD (es)

Al pasar código javascript no válido en el que era llamado a await y yield sobre funciones getter/setter no asíncronas y no generadoras, Hermes invocaba funciones generadoras y daba error en posiciones await/yield no válidas. Esto podría resultar en un fallo de segmentación como consecuencia de un error de confusión de tipos, con una baja probabilidad de RCE. Este problema afecta a Hermes versiones anteriores a v0.10.0

References

Sources

SourceRecordLicence
CVE ListCVE-2021-24044 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-7mhc-prgv-r3q4 changed 2023-11-08CC-BY-4.0
NVDCVE-2021-24044 changed 2026-06-17Public domain