CVE-2020-1914CWE-670

A logic vulnerability when handling the SaveGeneratorLong instruction in Facebook Hermes prior to commit b2021df620824627f5a8c96615edbd1eb7fdddfc allows…

published October 8, 2020

CVSS
—
EPSS
3%
Percentile
84.7
In the wild
Unconfirmed
What it is

⚠️ A crafty logic flaw in Facebook's Hermes engine could let attackers peek into areas they shouldn't! Think of it like a restaurant that mistakenly leaves the kitchen door open; while most diners are harmless, a sneaky chef could sneak in and tamper with the ingredients. This vulnerability allows untrusted JavaScript to potentially access areas of memory it shouldn't, like that rogue chef reaching for the spice rack! If exploited, this vulnerability could lead to unauthorized access to sensitive data or even arbitrary code execution, which is absolutely devastating for any application. Fortunately, this risk is mainly theoretical, as it requires the application to allow untrusted JavaScript to run, putting React Native apps mostly in the clear.

Put simply

Think of it like a restaurant that mistakenly leaves the kitchen door open; while most diners are harmless, a sneaky chef could sneak in and tamper with the ingredients. This vulnerability allows untrusted JavaScript to potentially access areas of memory it shouldn't, like that rogue chef reaching for the spice rack! CVE-2020-1914 is a logic vulnerability tied to the handling of the SaveGeneratorLong instruction in Facebook's Hermes JavaScript engine, exposing the potential for out-of-bounds reads or arbitrary code execution if untrusted JavaScript is permitted.

What to do

If exploited, this vulnerability could lead to unauthorized access to sensitive data or even arbitrary code execution, which is absolutely devastating for any application. Fortunately, this risk is mainly theoretical, as it requires the application to allow untrusted JavaScript to run, putting React Native apps mostly in the clear. Ensure that your application does not evaluate untrusted JavaScript, and if you're using Hermes, update to the commit after b2021df620824627f5a8c96615edbd1eb7fdddfc to address this flaw. Regular security audits can also prevent such vulnerabilities from becoming a threat. You've got this! With a little diligence, you can keep your applications safe and sound. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.02515 · 84.7th percentile
Weakness
CWE-670 · Always-Incorrect Control Flow Implementation
Published
2020-10-08T18:50Z
EPSS history
Timeline
  • 08 OCT 18:50Z
    A logic vulnerability when handling the SaveGeneratorLong instruction in Facebook Hermes prior to commit b2021df620824627f5a8c96615edbd1eb7fdddfc allows…
    cvelistv5