CVE-2025-5264 Potential local code execution in “Copy as cURL” command

Medium 4.8 Published Updated

Attackers can achieve local code execution by tricking users into copying a malicious cURL command due to insufficient newline escaping.

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

CVE-2025-5264 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 newline 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 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-5264?

It affects 1 product.

Products include Mozilla Firefox.

How do I fix CVE-2025-5264?

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-5264 being exploited?

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

All Mozilla Firefox vulnerabilities

Sources

Also known as DEBIAN-CVE-2025-5264, GHSA-7rph-qq97-wqp5, UBUNTU-CVE-2025-5264.

Is CVE-2025-5264 in your software?

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

Check your SBOMs for free