Type confusion in Meta Hermes
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-843 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Meta | Hermes | before 0.10.0 | 0.10.0 | Patch available | CNA |
| — | hermes-engine (npm) | before 0.10.0 | 0.10.0 | Patch available | GHSA-7mhc-prgv-r3q4 |
- Hermes VendorMeta Affected before 0.10.0 Fixed in 0.10.0 Patch available CNA
- hermes-engine (npm) Vendor— Affected before 0.10.0 Fixed in 0.10.0 Patch available GHSA-7mhc-prgv-r3q4
Remediation
- Fix · CNA Hermes (Facebook) Fixed in 0.10.0
- Fix · GHSA-7mhc-prgv-r3q4 hermes-engine (npm) Fixed in 0.10.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2021-24044
- 2026-10-03 Alias added: GHSA-7mhc-prgv-r3q4
References
More Meta Hermes vulnerabilities
- TI-2023-14306 Use after free in Meta Hermes CVSS 3.1CRITICAL 9.8
- TI-2023-12661 Use after free in Meta Hermes CVSS 3.1CRITICAL 9.8
- TI-2023-11181 Type confusion in Meta Hermes CVSS 3.1CRITICAL 9.8
- TI-2023-09388 Type confusion in Meta Hermes CVSS 3.1CRITICAL 9.8
- TI-2023-09387 Out-of-bounds write in Meta Hermes CVSS 3.1CRITICAL 9.8
- TI-2020-01841 A logic vulnerability when handling the SaveGeneratorLong instruction in Facebook Hermes… CVSS 3.1CRITICAL 9.8
Sources
- CVE-2021-24044 · CVE Program
- CVE-2021-24044 · NVD
- FIRST EPSS
- GHSA-7mhc-prgv-r3q4 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences