GitHub Advisoryadvisory · npm

GHSA-mph8-6787-r8hw Use After Free in Hermes

CRITICAL Published 2022-05-24 Modified 2022-06-22 Official page ↗
Aliases
CVE-2021-24037
Ecosystem
npm
Packages
hermes-engine
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-416
Reviewed
2022-06-22

Affected packages

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

Description

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.

Related

Alias · CVE (1)

  • CVE-2021-24037 A use after free in hermes, while emitting certain error messages, prior to commit d86e185e485b6330216dee8e854455c694e3a36e allows… vulnerability

Weakness · CWE (1)

References