# CVE-2021-24044: Access of Resource Using Incompatible Type 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.27%, higher than 70% of CVEs (2026-12-01)
- Published: 2022-01-15T00:35:08.000Z
- Modified: 2026-06-17T03:39:12.790Z
- Also known as: GHSA-7mhc-prgv-r3q4
- Weaknesses: CWE-843
- Assigned by: facebook

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

(As written by CVE List.)

## Affected

- Facebook Hermes: from unspecified before 0.10.0; before 0.10.0 (not affected: from 0.10.0 before unspecified)
- hermes-engine (npm): before 0.10.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://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

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

---

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