CVE-2021-24037
JSON

9.8critical

Use After Free in Hermes

Severity
9.8critical CVSS:3.1 by NVD
Exploit likelihood
1.80% (higher than 79% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
facebook
Also known as
GHSA-mph8-6787-r8hw

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.

Affected

Product or packageVersionsReported by
Facebook Hermescommit prior to d86e185e485b6330216dee8e854455c694e3a36e, before 0.8.0CVE List, NVD
hermes-engine (npm)before 0.8.0GitHub Advisory Database

All scores

GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

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.

NVD (es)

Un uso de la memoria previamente liberada en hermes, mientras se emiten determinados mensajes de error, antes del commit d86e185e485b6330216dee8e854455c694e3a36e permite a atacantes ejecutar potencialmente código arbitrario por medio de JavaScript diseñado. Tome en cuenta que esto sólo es explotable si la aplicación que usa Hermes permite la evaluación de JavaScript no confiable. Por lo tanto, la mayoría de las aplicaciones React Native no están afectadas

References

Sources

SourceRecordLicence
CVE ListCVE-2021-24037 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-mph8-6787-r8hw changed 2023-11-08CC-BY-4.0
NVDCVE-2021-24037 changed 2026-06-17Public domain