Use after free 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-416 and the CVSS impact.
Summary
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.
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 | commit prior to d86e185e485b6330216dee8e854455c694e3a36e | — | No fix listed | CNA |
| — | hermes-engine (npm) | before 0.8.0 | 0.8.0 | Patch available | GHSA-mph8-6787-r8hw |
- Hermes VendorMeta Affected commit prior to d86e185e485b6330216dee8e854455c694e3a36e Fixed in — No fix listed CNA
- hermes-engine (npm) Vendor— Affected before 0.8.0 Fixed in 0.8.0 Patch available GHSA-mph8-6787-r8hw
Remediation
- Fix · GHSA-mph8-6787-r8hw hermes-engine (npm) Fixed in 0.8.0 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2021-24037
- 2026-10-03 Alias added: GHSA-mph8-6787-r8hw
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-24037 · CVE Program
- CVE-2021-24037 · NVD
- FIRST EPSS
- GHSA-mph8-6787-r8hw · 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