CVE-2021-24045CWE-843

A type confusion vulnerability could be triggered when resolving the "typeof" unary operator in Facebook Hermes prior to v0.10.0

published December 13, 2021

CVSS
—
EPSS
1%
Percentile
69.2
In the wild
Unconfirmed
What it is

⚠️ A type confusion vulnerability could pop up while resolving the "typeof" operator in Facebook's Hermes engine before version 0.10.0! 🌟 Think of it like an overenthusiastic librarian who misclassifies books, leaving critical information mixed up on the wrong shelves. This can lead to confusion and misinterpretation, especially if someone pulls a book expecting something entirely different! While this vulnerability may not be widely exploited, if an application permits evaluation of untrusted JavaScript, an attacker could potentially manipulate data types, leading to unexpected behavior or even crashes. For most React Native apps, though, you’re in the clear!

Put simply

Think of it like an overenthusiastic librarian who misclassifies books, leaving critical information mixed up on the wrong shelves. This can lead to confusion and misinterpretation, especially if someone pulls a book expecting something entirely different! This type confusion vulnerability arises from the way the 'typeof' unary operator is processed in the Hermes engine, potentially allowing an attacker to cause improper type handling in JavaScript execution contexts.

What to do

While this vulnerability may not be widely exploited, if an application permits evaluation of untrusted JavaScript, an attacker could potentially manipulate data types, leading to unexpected behavior or even crashes. For most React Native apps, though, you’re in the clear! To mitigate this risk, ensure that your Hermes version is upgraded to v0.10.0 or later. Additionally, review your application's JavaScript handling practices, and limit evaluation of untrusted code if possible. You've got this! Staying proactive in your security practices will keep your applications safe and sound! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01252 · 69.2th percentile
Weakness
CWE-843 · Access of Resource Using Incompatible Type ('Type Confusion')
Published
2021-12-13T20:30Z
EPSS history
Timeline
  • 13 DEC 20:30Z
    A type confusion vulnerability could be triggered when resolving the "typeof" unary operator in Facebook Hermes prior to v0.10.0
    cvelistv5