# CVE-2021-24045: A type confusion vulnerability could be triggered when resolving the "typeof" unary operator in Facebook Hermes prior to v0.10.0.

- 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.25%, higher than 69% of CVEs (2026-11-30)
- Published: 2021-12-13T20:30:11.000Z
- Modified: 2026-06-17T03:39:12.893Z
- Weaknesses: CWE-843
- Assigned by: facebook

## Description

A type confusion vulnerability could be triggered when resolving the "typeof" unary operator in Facebook Hermes prior to v0.10.0. Note that this is only exploitable if the application using Hermes permits evaluation of untrusted JavaScript. Hence, most React Native applications are not affected.

(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)

## Every score

- 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 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://www.facebook.com/security/advisories/cve-2021-24045> (vendor-advisory)
- <https://github.com/facebook/hermes/commit/55e1b2343f4deb1a1b5726cfe1e23b2068217ff2> (patch, third-party-advisory)

## Sources

- CVE List: [CVE-2021-24045](https://www.cve.org/CVERecord?id=CVE-2021-24045), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-24045](https://nvd.nist.gov/vuln/detail/CVE-2021-24045), Public domain, modified 2026-06-17

---

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