# CVE-2021-24037: Use After Free in Hermes

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.80%, higher than 79% of CVEs (2026-12-01)
- Published: 2021-06-15T22:00:11.000Z
- Modified: 2026-06-17T03:39:12.083Z
- Also known as: GHSA-mph8-6787-r8hw
- Weaknesses: CWE-416
- Assigned by: facebook

## 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.

(As written by CVE List.)

## Affected

- Facebook Hermes: commit prior to d86e185e485b6330216dee8e854455c694e3a36e; before 0.8.0
- hermes-engine (npm): before 0.8.0

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## 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)

## Sources

- CVE List: [CVE-2021-24037](https://www.cve.org/CVERecord?id=CVE-2021-24037), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-mph8-6787-r8hw](https://github.com/advisories/GHSA-mph8-6787-r8hw), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-24037](https://nvd.nist.gov/vuln/detail/CVE-2021-24037), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-24037 · Whole record: https://cve.day/CVE-2021-24037.json · Rebuilt by cve.day 2026-11-25T22:58:01.908Z
