Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. hermes-engine
  4. ›
  5. CVE-2020-1912

CVE-2020-1912: Out-of-bounds Write

May 24, 2022 (updated June 24, 2022)

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.

References

  • github.com/advisories/GHSA-pf27-929j-9pmm
  • github.com/facebook/hermes/commit/091835377369c8fd5917d9b87acffa721ad2a168
  • nvd.nist.gov/vuln/detail/CVE-2020-1912
  • www.facebook.com/security/advisories/cve-2020-1912

Code Behaviors & Features

Detect and mitigate CVE-2020-1912 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 0.4.3

Fixed versions

  • 0.5.2

Solution

Upgrade to version 0.5.2 or above.

Impact 8.1 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-125: Out-of-bounds Read
  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
  • CWE-787: Out-of-bounds Write

Source file

npm/hermes-engine/CVE-2020-1912.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:59 +0000.