Integer Overflow to Buffer Overflow Affecting facebook/hermes package, versions [,0.12.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.3% (70th 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-3042407
  • published11 Oct 2022
  • disclosed11 Oct 2022
  • creditUnknown

Introduced: 11 Oct 2022

CVE-2022-35289  (opens in a new tab)
CWE-680  (opens in a new tab)

How to fix?

Upgrade facebook/hermes to version 0.12.0 or higher.

Overview

Affected versions of this package are vulnerable to Integer Overflow to Buffer Overflow in the growAndRehash() function in IdentifierHashTable.cpp, due to a write-what-where condition. This allows attackers to execute arbitrary JavaScript if Hermes is used to evaluate untrusted JavaScript.

CVSS Scores

version 3.1