Skip to content

CVE-2021-24037 Use After Free in Hermes

CriticalCVSS 9.8 EPSS 1.8%
Published
Updated
Exploit status
No public exploit known

Description

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.

Upgrade path

2 packages: 2 fixed.

PackageAffectedFixed inStatus
facebook Hermes < 0.8.0; = commit prior to d86e185e485b6330216dee8e854455c694e3a36e 0.8.0 Fixed
npm hermes-engine(npm) < 0.8.0; <= 0.7.2 0.8.0 Fixed

Affected products

ProductAffected versionsFixed in
npm hermes-engine(npm) <= 0.7.2 No fix listed
facebook Hermes < 0.8.0 0.8.0
facebook Hermes = commit prior to d86e185e485b6330216dee8e854455c694e3a36e No fix listed
npm hermes-engine(npm) < 0.8.0 0.8.0

References