Threat Feed

CVE-2026-141380: telnet · Privilege escalation

Exploitation: None known · CVSS 9.8 Critical · Unauthenticated · Published 2026-12-01

Description

A flaw was found in telnet. A remote, unauthenticated attacker can bypass environment variable validation during initial session negotiation to inject arbitrary environment variables into the daemon process. These manipulated environment variables are inherited by child authentication processes, which may allow an attacker to escalate privileges or execute arbitrary commands on the system.

Enclave's analysis

Netkit telnetd on Debian, Ubuntu, Kali and Gentoo lets a remote unauthenticated client inject arbitrary environment variables during Telnet option negotiation, because a Debian build patch skips the intended NEW-ENVIRON whitelist. Chained with LD_PRELOAD on root-run daemons, or a login.noauth credentials-directory trick on non-root setups, this can reach an unauthenticated root shell. The researcher who found it verified the full chain on real Debian/Ubuntu/Kali installs, but both paths need a second, independent file-write bug already present on the box - it isn't a single-packet exploit. No patch exists yet and no public PoC or in-the-wild activity has surfaced; if you still run telnetd anywhere reachable, turn it off rather than wait for a fix.

Fix

Upgrade Debian telnetd / telnetd-ssl (source package telnet) to none published yet - Debian bug #1156205 open; Ubuntu telnetd (same upstream netkit source) to none published yet; Kali telnetd (rolling, same upstream source) to none published yet. See the affected versions for other product fixes.

Affected versions

ProductVulnerableFixed in
Debian telnetd / telnetd-ssl (source package telnet)<= 0.17-42 (including 0.17.41+really0.17-3 bookworm, -6 trixie, -8 sid)none published yet - Debian bug #1156205 open
Ubuntu telnetd (same upstream netkit source)25.04 and 25.10 as shippednone published yet
Kali telnetd (rolling, same upstream source)rolling as of disclosure datenone published yet
Gentoo net-misc/netkit-telnetdbuilds inheriting Debian's ACCEPT_USERVAR patch seriesnone published yet

Seen in 3 sources