CVE-2020-1912 Out-of-bounds Read and Out-of-bounds Write in Facebook Hermes
Out-of-bounds read/write in Hermes allows arbitrary code execution via crafted JavaScript if untrusted code evaluation is permitted.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2020-1912?
CVE-2020-1912 is a high-severity memory corruption vulnerability in Facebook Hermes, published on 9 Sep 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
An out-of-bounds read/write vulnerability when executing lazily compiled inner generator functions in Facebook Hermes prior to commit 091835377369c8fd5917d9b87acffa721ad2a168 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.
Which versions are affected by CVE-2020-1912?
2 open source packages ship an affected version, including hermes-engine. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
hermes-engine npm | All versions | 0.5.2 |
hermes-engine npm | All versions | 0.5.2 |
Products include Facebook Hermes.
How do I fix CVE-2020-1912?
Upgrade hermes-engine to 0.5.2 or later.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2020-1912 being exploited?
There is no known exploitation of CVE-2020-1912 in the wild and no public exploit code.
Other vulnerabilities in Facebook Hermes
Sources
Also known as GHSA-pf27-929j-9pmm.