# CVE-2022-40138

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.8 (NVD); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability: affected before 2022-09-27, commit prior to 6aa825e480d48127b480b08d13adf70033237097 (CNA); fix release not confirmed
- Status: published
- Published: 2022-10-11 · Modified: 2024-08-03
- Record: https://cvemate.com/vulnerability/CVE-2022-40138 · JSON: https://cvemate.com/vulnerability/CVE-2022-40138/json

## Description

```text
An integer conversion error in Hermes bytecode generation, prior to commit 6aa825e480d48127b480b08d13adf70033237097, could have been used to perform Out-Of-Bounds operations and subsequently execute arbitrary code. Note that this is only exploitable in cases where Hermes is used to execute untrusted JavaScript. Hence, most React Native applications are not affected.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 1.212%, percentile 69.486%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- facebook hermes: ≥ unspecified, \< commit prior to 6aa825e480d48127b480b08d13adf70033237097 \| \< 2022-09-27

## References

- <https://github.com/facebook/hermes/commit/6aa825e480d48127b480b08d13adf70033237097>
- <https://www.facebook.com/security/advisories/CVE-2022-40138>

---

Data as of 2026-12-05T11:27:39.660Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
