GHSA-7mhc-prgv-r3q4

Suggest an improvement
Source
https://github.com/advisories/GHSA-7mhc-prgv-r3q4
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/01/GHSA-7mhc-prgv-r3q4/GHSA-7mhc-prgv-r3q4.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-7mhc-prgv-r3q4
Aliases
Published
2022-01-16T00:00:45Z
Modified
2023-11-08T04:05:14Z
Severity
  • 9.8 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
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.

Database specific
{
    "cwe_ids":  [
        "CWE-843"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2022-06-22T18:19:44Z",
    "nvd_published_at":  "2022-01-15T01:15:00Z",
    "severity":  "CRITICAL"
}
References

Affected packages

npm / hermes-engine

Package

Name
hermes-engine
View open source insights on deps.dev
Purl
pkg:npm/hermes-engine

Affected ranges

Type
SEMVER
Events
Introduced
0 Unknown introduced version / All previous versions are affected
Fixed
0.10.0

Database specific

last_known_affected_version_range
"<= 0.9.0"
source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/01/GHSA-7mhc-prgv-r3q4/GHSA-7mhc-prgv-r3q4.json"