CVE-2021-24037
CRITICAL 9.8CVSS 3.1Use After Free in Hermes
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.
- Published
- 15 Jun 2021
- Last modified
- 17 Jun 2026
- Assigned by
- cve-assign@fb.com
- NVD status
- Modified
- Weakness
- CWE-416
- Also known as
- GHSA-mph8-6787-r8hw
- Sources
- NVDJSONOSV GHSA-mph8-6787-r8hwJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | hermescpe:2.3:a:facebook:hermes:*:*:*:*:*:*:*:* |
< 0.8.0 | 0.8.0 | |
| OSV | npm | hermes-engine | < 0.8.0 | 0.8.0 |
References
- https://github.com/facebook/hermes/commit/d86e185e485b6330216dee8e854455c694e3a36e · Patch, Third Party Advisory, WEB
- https://www.facebook.com/security/advisories/CVE-2021-24037 · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-24037 · ADVISORY
- https://github.com/facebook/hermes · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 15 Jun 2021)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 24 May 2022)