Skip to content

Access of Resource Using Incompatible Type in Hermes

Critical severity GitHub Reviewed Published Jan 16, 2022 to the GitHub Advisory Database • Updated Jan 27, 2023

Package

npm hermes-engine (npm)

Affected versions

<= 0.9.0

Patched versions

0.10.0

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.

References

Published by the National Vulnerability Database Jan 15, 2022
Published to the GitHub Advisory Database Jan 16, 2022
Reviewed Jun 22, 2022
Last updated Jan 27, 2023

Severity

Critical
9.8
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Weaknesses

CVE ID

CVE-2021-24044

GHSA ID

GHSA-7mhc-prgv-r3q4

Source code

Checking history
See something to contribute? Suggest improvements for this vulnerability.