9.8critical
Access of Resource Using Incompatible Type in Hermes
- Severity
- 9.8critical CVSS:3.1 by NVD
- Exploit likelihood
- 1.27% (higher than 70% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Also known as
- GHSA-7mhc-prgv-r3q4
Description
By passing invalid javascript code where await and yield were called upon non-async and non-generator getter/setter functions, Hermes would invoke generator functions and error out on invalid await/yield positions. This could result in segmentation fault as a consequence of type confusion error, with a low chance of RCE. This issue affects Hermes versions prior to v0.10.0.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Facebook Hermes | from unspecified before 0.10.0, before 0.10.0 Not affected: from 0.10.0 before unspecified | CVE List, NVD |
| hermes-engine (npm) | before 0.10.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
By passing invalid javascript code where await and yield were called upon non-async and non-generator getter/setter functions, Hermes would invoke generator functions and error out on invalid await/yield positions. This could result in segmentation fault as a consequence of type confusion error, with a low chance of RCE. This issue affects Hermes versions prior to v0.10.0.
NVD (es)
Al pasar código javascript no válido en el que era llamado a await y yield sobre funciones getter/setter no asíncronas y no generadoras, Hermes invocaba funciones generadoras y daba error en posiciones await/yield no válidas. Esto podría resultar en un fallo de segmentación como consecuencia de un error de confusión de tipos, con una baja probabilidad de RCE. Este problema afecta a Hermes versiones anteriores a v0.10.0
References
| https://www.facebook.com/security/advisories/cve-2021-24044 | vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-24044 | advisory | |
| https://github.com/facebook/hermes | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-24044 changed 2024-08-03 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-7mhc-prgv-r3q4 changed 2023-11-08 | CC-BY-4.0 |
| NVD | CVE-2021-24044 changed 2026-06-17 | Public domain |