CVE-2021-24037: facebook hermes Use After Free
Vulnerability summary
CVE-2021-24037 is a critical (CVSS 9.8) Use After Free vulnerability in facebook hermes. EPSS estimates a 1.80% chance of exploitation in the next 30 days, higher than 79.1% of scored vulnerabilities.
Severe, CVSS 9.8 (NVD); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 04-12-2026)
Source freshness unavailable
How is this decided?Timeline
- 15-06-2021PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 2 sources · 2 versions- OSV · NpmEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
1.80%
Chance of exploitation in the next 30 days
Percentile
79%
Versus all other CVEs
30-day change
No change 0.00 pp
From 1.80% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Facebook1 product
- hermescommit prior to d86e185e485b6330216dee8e854455c694e3a36e | < 0.8.0
Npm1 product
- hermes-engine< 0.8.0
2 vendors · 2 products
References
4 links- github.com/facebook/hermes/commit/d86e185e485b6330216dee8e854455c694e3a36eX Refsource CONFIRMWEBPatchThird Party Advisory
- github.com/facebook/hermesPACKAGE