Out-of-bounds Write Affecting facebook/hermes package, versions [,0.5.0)


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.35% (72nd 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-2365241
  • published26 Jan 2022
  • disclosed2 Feb 2021
  • creditUnknown

Introduced: 2 Feb 2021

CVE-2020-1896  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

Upgrade facebook/hermes to version 0.5.0 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Write. A stack overflow vulnerability in Facebook Hermes 'builtin apply' prior to commit 86543ac47e59c522976b5632b8bf9a2a4583c7d2 (https://github.com/facebook/hermes/commit/86543ac47e59c522976b5632b8bf9a2a4583c7d2) allows attackers to potentially 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