CVE-2021-24045 Memory corruption in Hermes

Critical 9.8 Published Updated

Type confusion in Hermes allows code execution if untrusted JavaScript is evaluated, affecting React Native apps with this configuration.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-24045?

CVE-2021-24045 is a critical memory corruption vulnerability in Facebook Hermes, published on 13 Dec 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A type confusion vulnerability could be triggered when resolving the "typeof" unary operator in Facebook Hermes prior to v0.10.0. Note that this is only exploitable if the application using Hermes permits evaluation of untrusted JavaScript. Hence, most React Native applications are not affected.

Weakness: CWE-843

Which versions are affected by CVE-2021-24045?

It affects 1 product.

Products include Facebook Hermes.

How do I fix CVE-2021-24045?

No fix has been published for CVE-2021-24045 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2021-24045 being exploited?

There is no known exploitation of CVE-2021-24045 in the wild and no public exploit code.

Sources

Also known as GHSA-7493-f24p-jv53.

Is CVE-2021-24045 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free