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 78.1% of scored vulnerabilities.
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
78%
Versus all other CVEs
30-day change
0.00 pp
From 1.80% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
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