What’s Vulnerable › Vulnerabilities
CVE-2022-35289
- Severity: critical (CVSS 9.8 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2022-10-11 · updated 2026-06-17
- Weakness: CWE-680
Description
A write-what-where condition in hermes caused by an integer overflow, prior to commit 5b6255ae049fa4641791e47fad994e8e8c4da374 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.
Affected products
- Facebook Hermes: before 0.12.0 — fixed in 0.12.0
How to fix
Upgrade to a fixed version: Facebook Hermes 0.12.0. Check the vendor advisory for mitigations.
References
- https://github.com/facebook/hermes/commit/5b6255ae049fa4641791e47fad994e8e8c4da374
- https://www.facebook.com/security/advisories/CVE-2022-35289
- https://github.com/facebook/hermes/commit/5b6255ae049fa4641791e47fad994e8e8c4da374
- https://www.facebook.com/security/advisories/CVE-2022-35289
Get alerted when CVE-2022-35289 or the next vulnerability affects your stack