CVE-2021-38504 Use after free in Firefox

High 8.8 Published Updated

A use-after-free in Firefox's file picker allows attackers to cause memory corruption and potentially execute code via a crafted HTML page.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-38504?

CVE-2021-38504 is a high-severity use after free vulnerability in Debian Debian Linux, published on 8 Dec 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

When interacting with an HTML input element's file picker dialog with webkitdirectory set, a use-after-free could have resulted, leading to memory corruption and a potentially exploitable crash. This vulnerability affects Firefox < 94, Thunderbird < 91.3, and Firefox ESR < 91.3.

Weakness: CWE-416

Which versions are affected by CVE-2021-38504?

It affects 4 products.

Products include Debian Debian Linux, Mozilla Firefox, Mozilla Firefox Esr, Mozilla Thunderbird.

How do I fix CVE-2021-38504?

Upgrade to a fixed version.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2021-38504 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-38504, GHSA-53f7-m98p-5ggp, UBUNTU-CVE-2021-38504.

Is CVE-2021-38504 in your software?

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

Check your SBOMs for free