Skip to content
Critical Telnet Flaw Lets Hackers Gain Root Access to Ubuntu and Kali Linux Without Passwords

Critical Telnet Flaw Lets Hackers Gain Root Access to Ubuntu and Kali Linux Without Passwords

Cybersecuritynews •Guru Baran • December 3, 2026

A critical flaw in the Netkit Telnet server can give remote attackers root access to vulnerable Ubuntu, Kali Linux, and Debian systems without a password. Security researcher Liad Levy disclosed the flaw, tracked as CVE-2026-141380, on OSS-Security on December 2.

Levy assigned a CVSS 3.1 score of 9.8 to the path that allows remote code to run as root. The disclosure also identifies an affected Netkit package on Gentoo.

An open Telnet port alone is not enough to gain root access. Both paths Levy described require the attacker to reach a vulnerable Telnet server and be able to write a file on the target.

That matters for defenders: a file-write flaw elsewhere on the same host could turn limited access into full control, even if the attacker doesn’t know a valid password. The disclosure reports successful tests, not confirmed attacks in the wild.

Netkit Telnet Flaw Bypasses Login

The flaw traces back to a Debian patch that changed how Netkit telnetd handles environment variables, which are settings programs pass to one another. During the initial connection setup, the server accepts settings marked as user-defined without checking them against its normal list of allowed settings.

The remote client controls that label. A privileged helper then forwards those settings to the system login program before the user has proved who they are.

The result depends on how Telnet runs. When the service starts as root, the login program can load attacker-controlled code with full system privileges. Running the service under a less privileged account blocks that route, but Levy found that the login program in util-linux 2.40 or later can still be made to skip its normal checks.

This is not the same as the passwordless Telnet access used by the Kairos botnet , where attackers logged in with an empty password. Here, the flaw can bypass the password check itself.

Levy reported confirming passwordless root access on Debian 13 “Trixie,” Ubuntu 25.04 and 25.10, and Kali Linux Rolling. The disclosure identifies Debian’s Netkit-based telnetd and telnetd-ssl packages and Gentoo’s net-misc/netkit-telnetd .

Debian 11 “Bullseye” also accepts the untrusted settings, but its stock util-linux 2.36 lacks the login feature involved in the second path. The installed package, login version, and service configuration matter more than the distribution name alone.

Identify which Telnet server is installed and where it is reachable. Disable it if it is not needed, and use SSH for remote administration. If a legacy system must keep Telnet, restrict access to trusted management hosts and verify that TCP port 23 is not reachable from untrusted networks.

Cyber Security News’ coverage of a separate Telnet flaw on TCP port 23 shows why defenders should account for attacks that begin before a login prompt.

Levy proposed restoring strict checks on client-supplied settings or filtering what the privileged helper passes to the login program. Those proposals are not a released patch.

Check your distribution’s security notices for an update that explicitly names CVE-2026-141380 and covers the installed Netkit package.

A fix for CVE-2026-28372 in GNU Inetutils does not fix Netkit. Until a fix is confirmed, keep affected services off untrusted networks rather than relying on password strength alone.

Provide SOC With the Latest Threat Context from 16K Sources to Quickly Stop Incidents

The full story

This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.

Netkit Telnetd Flaw CVE-2026-141380 Enables Root Code Execution on Debian-Based Systems Researcher Liad Levy disclosed CVE-2026-141380 on the OSS-Security list on 2 December 2026, describing a pre-authentication flaw in the netkit telnetd implementation shipped in Debian's patch series. The Debian patch 124-support_uservar.diff causes client-marked USERVAR environment variables to bypass the envvarok() whitelist and be passed to setenv(), and the setuid telnetlogin wrapper forwards them to /bin/login. One article rates the path to root code execution CVSS 3.1 9.8, while another notes the score applies to the root-execution path. Affected packages reportedly include Debian telnetd and telnetd-ssl (source package telnet 0.17-42 and earlier), along with Gentoo net-misc/netkit-telnetd; Levy reported full exploitation on Debian 13 trixie, Ubuntu 25.04 and 25.10, and Kali rolling. When the daemon runs as root, attacker-supplied LD_PRELOAD libraries may execute as root during login. Under Debian's non-root inetd entry, a login.noauth file in CREDENTIALS_DIRECTORY can cause util-linux 2.40+ to skip PAM, per one article. Exploitation requires the attacker to reach port 23 and write a file on the target, which can come from a separate file-write flaw. The disclosure reports successful lab tests; the articles do not report attacks in the wild. Suggested fixes include reverting the is_uservar relaxation, dropping ACCEPT_USERVAR, or whitelisting variables in telnetlogin, but no released patch is reported. A related GNU inetutils issue, CVE-2026-28372, is referenced as background. 4 sources 72

Extracted Entities