CVE-2025-49809
High · 7.8CVSS
7.8
EPSS
0.2%
Published
Jul 4, 2025
CISA due date
—
Cloudanix analysis
A network diagnostic tool can be tricked into running attacker-chosen programs with high privileges on certain systems, risking complete machine takeover.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- High
- Impact
- Full Compromise
- Component
- Application
- Class
- Command Injection
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The vulnerability allows an attacker to inject and execute arbitrary commands by manipulating the MTR_PACKET environment variable when mtr is invoked in privileged contexts.
Why it matters to the business
Attackers could gain elevated privileges on affected systems, leading to full system compromise, data breaches, or disruption of services, especially in environments using sudo rules with mtr.
How an attack unfolds
An attacker configures the MTR_PACKET environment variable to point to a malicious executable and then triggers mtr execution through a privileged mechanism such as sudo, resulting in the malicious program running with elevated privileges.
How to fix it
Upgrade mtr to a fixed version such as commit 5226f105f087c29d3cfad9f28000e7536af91ac6 or apply package updates such as stakater-reloader-fips to 1.4.2-r1.
How to confirm the fix worked
Verify the installed version of mtr meets or exceeds the listed fixed versions and confirm that MTR_PACKET is ignored during privileged executions.
Typical attack path
- Set MTR_PACKET environment variable to path of attacker-controlled executable
- Invoke mtr in a privileged context such as via sudo rules
- mtr executes the attacker-specified program with elevated privileges
How to detect it
Inspect process execution logs and audit records for mtr invocations that include a non-default MTR_PACKET environment variable.
- MTR_PACKET=
- mtr invoked with custom MTR_PACKET environment variable
What your security team should do
- Update mtr packages to the specified fixed versions without delay
- Audit and restrict sudo rules that permit mtr execution
- Implement environment variable sanitization for privileged binaries
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | mtr | 0 | No fix |
| Debian:12 | mtr | 0 | No fix |
| Debian:13 | mtr | 0 | No fix |
Related vulnerabilities
- CVE-2026-63184 Refitter is a tool for generating a C# REST API client using the Refit library. CWE-829
- CVE-2026-118762 Monkeytype is a minimalistic and customizable typing test. CWE-829
- CVE-2023-7357 A remote code execution (RCE) vulnerability was identified in the FlexNet Publisher… CWE-829
- CVE-2026-15564 Wildfly's IIOP listener may permit deserialization of input streams before authentication… CWE-829
- CVE-2026-114488 A flaw was found in Wildfly. CWE-829
- CVE-2026-84725 when EAP runs with -secmgr, the openjdk-orb's JDKBridge honours attacker-supplied CDR… CWE-829
- CVE-2026-59172 Joker is a small Clojure interpreter, linter and formatter written in Go. CWE-829
- CVE-2026-59176 Functype is a family of TypeScript functional programming libraries. CWE-829