CVE-2021-24002 Command injection in Firefox

High 8.8 Published Updated

An attacker can inject arbitrary commands to an FTP server by tricking a user into clicking a malicious URL with encoded newlines in Firefox or Thunderbird.

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-24002?

CVE-2021-24002 is a high-severity command injection vulnerability in Mozilla Firefox, published on 24 Jun 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 a user clicked on an FTP URL containing encoded newline characters (%0A and %0D), the newlines would have been interpreted as such and allowed arbitrary commands to be sent to the FTP server. This vulnerability affects Firefox ESR < 78.10, Thunderbird < 78.10, and Firefox < 88.

Weakness: CWE-74

Which versions are affected by CVE-2021-24002?

It affects 3 products.

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

How do I fix CVE-2021-24002?

Upgrade to a fixed version.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2021-24002 being exploited?

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

All Mozilla Firefox vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-24002, GHSA-jvwq-53jx-c5f6, UBUNTU-CVE-2021-24002.

Is CVE-2021-24002 in your software?

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

Check your SBOMs for free