CVE-2025-49809 Command injection in mtr

High 7.8 Published Updated

Attackers can execute arbitrary commands with elevated privileges by manipulating the MTR_PACKET environment variable in privileged contexts.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-49809?

CVE-2025-49809 is a high-severity command injection vulnerability in mtr, published on 4 Jul 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

mtr through 0.95, in certain privileged contexts, mishandles execution of a program specified by the MTR_PACKET environment variable. NOTE: mtr on macOS may often have Sudo rules, as an indirect consequence of Homebrew not installing setuid binaries.

Weakness: CWE-829

Which versions are affected by CVE-2025-49809?

How do I fix CVE-2025-49809?

Apply the vendor's patch.

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

Is CVE-2025-49809 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-49809 exists.

Sources

Also known as AZL-65136, AZL-65232, DEBIAN-CVE-2025-49809, GHSA-hvvx-vw37-6fjm, MINI-q244-fvfc-2v3c, UBUNTU-CVE-2025-49809.

Is CVE-2025-49809 in your software?

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

Check your SBOMs for free