CVE-2022-35289 in Facebook Hermes
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. ...
Affects 1 product from 1 vendor. Facts below cite their sources.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Hermes | < 0.12.0 |
A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.
Fix and vendor advisory
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Not in the CISA KEV catalog |
|---|---|
| Public exploit | Not confirmed |
Official 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.
Source: NIST NVD / MITRE CVE.
Record details
| CVE ID | CVE-2022-35289 |
|---|---|
| BreachSpider ID | BS-2022-GLOBAL-065262-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Published | 2022-10-11 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Weakness definitions
CWE-190: Integer Overflow or Wraparound
Arithmetic operation exceeds the maximum integer value, wrapping around and often leading to undersized allocations.
CWE-680: CWE-680
Related attack patterns (CAPEC)
CAPEC-8 Buffer Overflow in an API Call via CWE-680
CAPEC-9 Buffer Overflow in Local Command-Line Utilities via CWE-680
CAPEC-10 Buffer Overflow via Environment Variables via CWE-680
CAPEC-14 Client-side Injection-induced Buffer Overflow via CWE-680
CAPEC-24 Filter Failure through Buffer Overflow via CWE-680
Show all 11
CAPEC-45 Buffer Overflow via Symbolic Links via CWE-680
CAPEC-46 Overflow Variables and Tags via CWE-680
CAPEC-47 Buffer Overflow via Parameter Expansion via CWE-680
CAPEC-67 String Format Overflow in syslog() via CWE-680
CAPEC-92 Forced Integer Overflow via CWE-190, CWE-680
CAPEC-100 Overflow Buffers via CWE-680
Mapping is CWE to CAPEC per MITRE CAPEC 3.9.
Analysis AI-written, not human-reviewed
A write-what-where condition in Hermes due to an integer overflow allows attackers to execute arbitrary code via crafted JavaScript, but is only exploitable if the application permits evaluation of untrusted JavaScript.
The vulnerability stems from an integer overflow in Hermes, which can lead to a write-what-where condition. This condition can be exploited by attackers to execute arbitrary code if the application evaluates untrusted JavaScript.
Questions
What is CVE-2022-35289?
A write-what-where condition in Hermes due to an integer overflow allows attackers to execute arbitrary code via crafted JavaScript, but is only exploitable if the application permits evaluation of untrusted JavaScript.
What is the CVSS score for CVE-2022-35289?
CVE-2022-35289 has CVSS 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 1.5%.
Is CVE-2022-35289 actively exploited?
No confirmed active exploitation of CVE-2022-35289 as of 2026-09-25.
How do I remediate CVE-2022-35289?
Priority: MEDIUM. Advisory: https://www.facebook.com/security/advisories/CVE-2022-35289 PSIRT: [email protected]
What systems are affected by CVE-2022-35289?
CVE-2022-35289 affects Facebook Hermes.
For developers and AI agents
Run this check from your own code or agent
REST API
curl -s https://breachspider.com/api/v1/assets/correlate-cves \
-H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
-H "Content-Type: application/json" \
-d '{"assets":[{"asset_id":"dev-1","vendor":"Facebook","product":"Hermes","version":"1.0"}]}'
MCP for AI agents
# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp
Free trial: 14 days, 750 device checks, no card.
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.