CVE-2025-4089 Potential local code execution in "copy as cURL" command
Attackers can achieve local code execution by tricking users into copying a malicious cURL command from Firefox or Thunderbird.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-4089?
CVE-2025-4089 is a medium-severity command injection vulnerability in Mozilla Firefox, published on 29 Apr 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
Due to insufficient escaping of 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 vulnerability was fixed in Firefox 138 and Thunderbird 138.
Weakness: CWE-77
Which versions are affected by CVE-2025-4089?
It affects 2 products.
Products include Mozilla Firefox, Mozilla Thunderbird.
How do I fix CVE-2025-4089?
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-4089 being exploited?
There is no known exploitation of CVE-2025-4089 in the wild and no public exploit code.
Other vulnerabilities in Mozilla Firefox
Sources
Also known as GHSA-f4pj-f2qw-57cr, UBUNTU-CVE-2025-4089.