CVE-2022-40138
Last modified
CVE-2022-40138 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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. EPSS estimates a 0.89% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Hermes | < 2022-09-27 |
References
- https://github.com/facebook/hermes/commit/6aa825e480d48127b480b08d13adf70033237097Patch, Third Party Advisory
- https://www.facebook.com/security/advisories/CVE-2022-40138Vendor Advisory
- https://github.com/facebook/hermes/commit/6aa825e480d48127b480b08d13adf70033237097Patch, Third Party Advisory
- https://www.facebook.com/security/advisories/CVE-2022-40138Vendor Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2022-40138?
How severe is CVE-2022-40138?
How do I fix CVE-2022-40138?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2022
- CVE-2022-40132Cross-Site Request Forgery (CSRF) vulnerability in Seriously…4.3
- CVE-2022-40133A use-after-free(UAF) vulnerability was found in function 'v…5.5
- CVE-2022-40134An information leak vulnerability in the SMI Set BIOS Passwo…4.4
- CVE-2022-40135An information leak vulnerability in the Smart USB Protectio…4.4
- CVE-2022-40136An information leak vulnerability in SMI Handler used to con…4.4
- CVE-2022-40137A buffer overflow in the WMI SMI Handler in some Lenovo mode…6.7
- CVE-2022-40139Improper validation of some components used by the rollback …7.2
- CVE-2022-4014A vulnerability, which was classified as problematic, has be…4.3
- CVE-2022-40140An origin validation error vulnerability in Trend Micro Apex…5.5
- CVE-2022-40141A vulnerability in Trend Micro Apex One and Apex One as a Se…7.5
- CVE-2022-40142A security link following local privilege escalation vulnera…7.8
- CVE-2022-40143A link following local privilege escalation vulnerability in…7.3
Are you affected by CVE-2022-40138?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
