LiveActive security incident?Get immediate response
CVE Record

CVE-2021-24037: A use after free in hermes, while emitting certain error messages, prior to commit d86e185e485b6330216dee8e...

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.

UnknownCVSS not scoredNot KEV-listedUpdated
Glexia's TakeAutomated analysismoderate

Security readout for executives and security teams

Plain-English summary

Hermes had a memory-safety flaw that could let crafted JavaScript potentially run code. The key business qualifier is exposure: sources state it is only exploitable when an application using Hermes permits untrusted JavaScript evaluation, and most React Native applications are not affected.

Executive priority

Handle as a focused exposure review. It is not presented as broadly exploitable across React Native, but affected Hermes deployments that evaluate untrusted JavaScript should be updated or constrained because the potential impact is code execution.

Technical view

CVE-2021-24037 is a CWE-416 use-after-free in Facebook Hermes while emitting certain error messages before commit d86e185e485b6330216dee8e854455c694e3a36e. The reported impact is potential arbitrary code execution through crafted JavaScript, constrained to applications that evaluate untrusted JavaScript.

Likely exposure

Likely limited to applications embedding Hermes and allowing untrusted JavaScript evaluation. Standard React Native applications are stated as mostly unaffected, but custom scripting, plugins, or user-supplied JavaScript features should be checked.

Exploitation context

The source bundle does not show CISA KEV listing, public exploitation, or exploit availability. Exploitation should not be assumed unless an exposed application accepts and evaluates untrusted JavaScript with a vulnerable Hermes build.

Researcher notes

Evidence is concise: affected scope is Hermes before one commit, weakness is CWE-416, and exploitability depends on untrusted JavaScript evaluation. No CVSS vector, proof-of-concept status, or active exploitation evidence is provided in the bundle.

Mitigation direction

  • Update Hermes to include commit d86e185e485b6330216dee8e854455c694e3a36e or later.
  • Disable or restrict evaluation of untrusted JavaScript in Hermes-backed applications.
  • Review Facebook and Hermes guidance for any version-specific remediation details.
  • Prioritize apps with scripting, plugin, template, or user-supplied JavaScript features.

Validation and detection

  • Inventory applications and builds that include Facebook Hermes.
  • Confirm the Hermes source or dependency includes commit d86e185e485b6330216dee8e854455c694e3a36e or later.
  • Review application features for untrusted JavaScript evaluation paths.
  • Document whether each React Native application uses Hermes and accepts untrusted JavaScript.
Prepared
Confidence
medium
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-416: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
description · low confidence lookup

Execution behavior lookup

The CVE wording references code or command execution, so execution technique review may help defensive triage. This is a Glexia inferred lookup path, not an official MITRE, ATT&CK, or CVE Program mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2021-24037 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
Unknown
CVSS
Not scored
Known Exploited
No
Published
Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

0CVSS vectors
0Timeline events
0ADP providers
3Source links

CVSS and timeline data

No CVSS vectors or timeline events were available in the normalized CVE source material.

Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
FacebookHermescommit prior to d86e185e485b6330216dee8e854455c694e3a36eListed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.