CVE-2022-40138CWE-681

An integer conversion error in Hermes bytecode generation, prior to commit 6aa825e480d48127b480b08d13adf70033237097, could have been used to perform…

published October 11, 2022

CVSS
—
EPSS
1%
Percentile
67.5
In the wild
Unconfirmed
What it is

⚠️ An integer conversion error lurking in Hermes could allow sneaky out-of-bounds operations! 🚨 Think of it like a restaurant that serves food orders without checking if the dishes are actually safe to consume. If a customer sneaks in a dangerous ingredient, it could turn the meal into a disaster! If exploited, this could give an attacker the keys to run arbitrary code on the system, leading to potentially catastrophic results, especially in environments running untrusted JavaScript. However, most React Native applications are safe from this particular vulnerability since they're designed to execute trusted code!

Put simply

Think of it like a restaurant that serves food orders without checking if the dishes are actually safe to consume. If a customer sneaks in a dangerous ingredient, it could turn the meal into a disaster! This vulnerability in Hermes bytecode generation arises from an integer conversion error, which, when triggered, may allow out-of-bounds operations that attackers can exploit to execute arbitrary code.

What to do

If exploited, this could give an attacker the keys to run arbitrary code on the system, leading to potentially catastrophic results, especially in environments running untrusted JavaScript. However, most React Native applications are safe from this particular vulnerability since they're designed to execute trusted code! To mitigate this issue, ensure that you're using the latest Hermes version with the commit 6aa825e480d48127b480b08d13adf70033237097 or later. Review any usage of untrusted JavaScript in your applications and apply necessary security measures accordingly. You've got this! With a swift update and some checks, you’ll keep your app secure! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01183 · 67.5th percentile
Weakness
CWE-681 · Incorrect Conversion between Numeric Types
Published
2022-10-11T00:00Z
EPSS history
Timeline
  • 11 OCT 00:00Z
    An integer conversion error in Hermes bytecode generation, prior to commit 6aa825e480d48127b480b08d13adf70033237097, could have been used to perform…
    cvelistv5