Always-Incorrect Control Flow Implementation Affecting facebook/hermes package, versions [,2020-10-01)


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Not Defined
EPSS
0.28% (69th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-FACEBOOKHERMES-2365244
  • published26 Jan 2022
  • disclosed8 Oct 2020
  • creditUnknown

Introduced: 8 Oct 2020

CVE-2020-1914  (opens in a new tab)
CWE-670  (opens in a new tab)

How to fix?

Upgrade facebook/hermes to version 2020-10-01 or higher.

Overview

Affected versions of this package are vulnerable to Always-Incorrect Control Flow Implementation. A logic vulnerability when handling the SaveGeneratorLong instruction in Facebook Hermes prior to commit b2021df620824627f5a8c96615edbd1eb7fdddfc allows attackers to potentially read out of bounds or theoretically execute arbitrary code via crafted JavaScript. Note that this is only exploitable if the application using Hermes permits evaluation of untrusted JavaScript. Hence, most React Native applications are not affected.

CVSS Scores

version 3.1