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

CVE-2021-24037: Use After Free

May 24, 2022 (updated June 22, 2022)

A use after free in hermes, while emitting certain error messages, prior to commit d86e185e485b6330216dee8e854455c694e3a36e 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-mph8-6787-r8hw
  • github.com/facebook/hermes/commit/d86e185e485b6330216dee8e854455c694e3a36e
  • nvd.nist.gov/vuln/detail/CVE-2021-24037
  • www.facebook.com/security/advisories/CVE-2021-24037

Code Behaviors & Features

Detect and mitigate CVE-2021-24037 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.7.2

Fixed versions

  • 0.8.0

Solution

Upgrade to version 0.8.0 or above.

Impact 9.8 CRITICAL

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

Learn more about CVSS

Weakness

  • CWE-416: Use After Free
  • CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Source file

npm/hermes-engine/CVE-2021-24037.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:24 +0000.