CVE & CISA-KEV Catalog

CVE-2022-40138

CRITICAL
9.8
CVSS v3
NVD

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.

How to fix

Remediation Available
hermesNVD
Affected:< 2022-09-27Fixed in:2022-09-27CVE-2022-40138derived from NVD

TridentStack Control can deploy fixes like this automatically across your Windows, macOS, and Linux fleet. See how it works

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged

Impact

ConfidentialityHigh
IntegrityHigh
AvailabilityHigh

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Exploit Intelligence

0.93%probability of exploitation in 30 days
57thpercentile

Moderate risk: more likely to be exploited than 57% of all known CVEs.

References

Vendor Advisory1

Related Vulnerabilities

Other CWE-681 vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2022-34169High7.581%-Fix
CVE-2009-0231High8.837%--
CVE-2016-3074Critical9.837%-Fix
CVE-2008-1721High7.523%-Fix
CVE-2017-7308High7.818%-Fix
CVE-2022-43663High8.114%--

Common questions

How do I fix CVE-2022-40138?

Upgrade hermes to 2022-09-27 or later.

Is CVE-2022-40138 being actively exploited?

Not that we know of. CVE-2022-40138 is not in the CISA Known Exploited Vulnerabilities catalog. Its EPSS score of 0.93% is the estimated probability that it will be exploited in the next 30 days. That is higher than 57% of all scored CVEs.

How severe is CVE-2022-40138?

CVE-2022-40138 has a CVSS v3 base score of 9.8, rated critical. CVSS rates the technical impact if the vulnerability is exploited, not how likely that is, so weigh it alongside the exploit-prediction score when you decide what to patch first.

What does CVE-2022-40138 affect?

Published advisories record a fix for hermes (NVD). Only products with a sourced advisory are listed, so treat this as what we can cite rather than a complete inventory.

Embed a live status badge for CVE-2022-40138
CVE-2022-40138 severity badge

Markdown

[![CVE-2022-40138](https://tridentstack.com/cve/badge/CVE-2022-40138.svg)](https://tridentstack.com/cve/CVE-2022-40138)

HTML

<a href="https://tridentstack.com/cve/CVE-2022-40138"><img src="https://tridentstack.com/cve/badge/CVE-2022-40138.svg" alt="CVE-2022-40138"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

See how it worksStart freeThis CVE lookup is free and always will be.

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.