GitHub Advisoryadvisory · npm

GHSA-pf27-929j-9pmm Out-of-bounds Read and Out-of-bounds Write in Facebook Hermes

HIGH Published 2022-05-24 Modified 2022-06-24 Official page ↗
Aliases
CVE-2020-1912
Ecosystem
npm
Packages
hermes-engine
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-125, CWE-787
Reviewed
2022-06-24

Affected packages

• npm hermes-engine: < 0.5.2 → fixed in 0.5.2

Description

An out-of-bounds read/write vulnerability when executing lazily compiled inner generator functions in Facebook Hermes prior to commit 091835377369c8fd5917d9b87acffa721ad2a168 allows attackers to potentially execute arbitrary code via crafted JavaScript. Note that this is only exploitable if the application using Hermes permits evaluation of untrusted JavaScript. Hence, most React Native applications are not affected.

Related

Alias · CVE (1)

  • CVE-2020-1912 An out-of-bounds read/write vulnerability when executing lazily compiled inner generator functions in Facebook Hermes prior to commit… vulnerability

Weakness · CWE (2)

  • CWE-125 Out-of-bounds Read weakness
  • CWE-787 Out-of-bounds Write weakness

References