CVE-2025-4084 Potential local code execution in "copy as cURL" command

Medium 5.7 Published Updated

An attacker can achieve local code execution on Windows by tricking a user into copying a malicious cURL command from Firefox.

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

What is CVE-2025-4084?

CVE-2025-4084 is a medium-severity command injection vulnerability in Mozilla Firefox, published on 29 Apr 2025. Any signed-in user can exploit it over the network, and only if a user opens a file or follows a link.

Official description

Due to insufficient escaping of the special characters in the "copy as cURL" feature, an attacker could trick a user into using this command, potentially leading to local code execution on the user's system. *This bug only affects Firefox for Windows. Other versions of Firefox are unaffected.*. This vulnerability was fixed in Firefox ESR 128.10, Firefox ESR 115.23, and Thunderbird 128.10.

Weakness: CWE-116

Which versions are affected by CVE-2025-4084?

It affects 2 products.

Products include Mozilla Firefox, Mozilla Thunderbird.

How do I fix CVE-2025-4084?

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-2025-4084 being exploited?

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

All Mozilla Firefox vulnerabilities

Sources

Also known as GHSA-gx9w-3cv3-7x4r.

Is CVE-2025-4084 in your software?

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

Check your SBOMs for free