9.8critical
Use After Free in Hermes
- Severity
- 9.8critical CVSS:3.1 by NVD
- Exploit likelihood
- 1.80% (higher than 79% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Also known as
- GHSA-mph8-6787-r8hw
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Facebook Hermes | commit prior to d86e185e485b6330216dee8e854455c694e3a36e, before 0.8.0 | CVE List, NVD |
| hermes-engine (npm) | before 0.8.0 | GitHub Advisory Database |
All scores
| GitHub | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
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.
NVD (es)
Un uso de la memoria previamente liberada en hermes, mientras se emiten determinados mensajes de error, antes del commit d86e185e485b6330216dee8e854455c694e3a36e permite a atacantes ejecutar potencialmente código arbitrario por medio de JavaScript diseñado. Tome en cuenta que esto sólo es explotable si la aplicación que usa Hermes permite la evaluación de JavaScript no confiable. Por lo tanto, la mayoría de las aplicaciones React Native no están afectadas
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-24037 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-mph8-6787-r8hw changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2021-24037 changed 2026-06-17 | Public domain |