CVE-2025-5265 Potential local code execution in “Copy as cURL” command
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
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2025-5265?
CVE-2025-5265 is a medium-severity command injection vulnerability in Mozilla Firefox, published on 27 May 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
Due to insufficient escaping of the ampersand character 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 139, Firefox ESR 115.24, Firefox ESR 128.11, Thunderbird 139, and Thunderbird 128.11.
Weakness: CWE-77
Which versions are affected by CVE-2025-5265?
It affects 1 product.
Products include Mozilla Firefox.
How do I fix CVE-2025-5265?
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-5265 being exploited?
There is no known exploitation of CVE-2025-5265 in the wild and no public exploit code.
Other vulnerabilities in Mozilla Firefox
Sources
Also known as GHSA-fjj5-r59g-88g7, UBUNTU-CVE-2025-5265.