Use After Free Affecting facebook/hermes package, versions [,0.8.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.34% (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 Learn

Learn about Use After Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-FACEBOOKHERMES-2365238
  • published26 Jan 2022
  • disclosed15 Jun 2021
  • creditUnknown

Introduced: 15 Jun 2021

CVE-2021-24037  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade facebook/hermes to version 0.8.0 or higher.

Overview

Affected versions of this package are vulnerable to Use After Free. A use after free in hermes, while emitting certain error messages, prior to commit d86e185e485b6330216dee8e854455c694e3a36e 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