CVE-2021-24037CWE-416

A use after free in hermes, while emitting certain error messages, prior to commit d86e185e485b6330216dee8e854455c694e3a36e allows attackers to potentially…

published June 15, 2021

CVSS
—
EPSS
2%
Percentile
78.3
In the wild
Unconfirmed
What it is

⚡ A crafty JavaScript exploit lies in wait! In Hermes, a use-after-free vulnerability could let attackers execute arbitrary code, but only if untrusted scripts are allowed. 😱 Think of it as a hotel room where the cleaning staff forgets to throw out a rogue key — just one slip-up could let a guest sneak back in after check-out, taking a peek at the valuables inside! If an attacker pulls this off, they could execute malicious code within the application, potentially leading to data breaches or other nasty surprises for your users. While this isn't on everyone’s radar, if your app allows untrusted JavaScript, it could be an absolute nightmare!

Put simply

Think of it as a hotel room where the cleaning staff forgets to throw out a rogue key — just one slip-up could let a guest sneak back in after check-out, taking a peek at the valuables inside! This vulnerability resides in Hermes and allows a use-after-free scenario during the emission of certain error messages. Attackers can leverage this flaw to run arbitrary code, but only if the application permits the evaluation of untrusted JavaScript.

What to do

If an attacker pulls this off, they could execute malicious code within the application, potentially leading to data breaches or other nasty surprises for your users. While this isn't on everyone’s radar, if your app allows untrusted JavaScript, it could be an absolute nightmare! To protect your application, ensure that you're using an updated version of Hermes where this issue has been addressed. Audit your JavaScript evaluation settings to prevent the use of untrusted scripts. Staying vigilant is key! You've got this! With the right precautions, you can keep your application safe from this sneaky vulnerability. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01795 · 78.3th percentile
Weakness
CWE-416 · Use After Free
Published
2021-06-15T22:00Z
EPSS history
Timeline
  • 15 JUN 22:00Z
    A use after free in hermes, while emitting certain error messages, prior to commit d86e185e485b6330216dee8e854455c694e3a36e allows attackers to potentially…
    cvelistv5