VYPR
vulnerabilityPublished Dec 3, 2026· 1 source

Critical Netkit Telnet Flaw Grants Passwordless Root Access on Linux Systems

A critical vulnerability in the Netkit Telnet server allows remote attackers to gain root access on vulnerable Ubuntu, Kali Linux, and Debian systems without a password.

A critical flaw in the Netkit Telnet server, identified as CVE-2026-141380, enables remote attackers to achieve root-level access on vulnerable Ubuntu, Kali Linux, and Debian systems without requiring any credentials. Security researcher Liad Levy disclosed the vulnerability, which carries a CVSS 3.1 score of 9.8, highlighting its potential for severe system compromise.

The vulnerability stems from an improper handling of environment variables during the connection setup process. Specifically, the server accepts user-defined settings without proper validation against its allowed list. This allows a remote client to control certain variables, which are then forwarded to the system's login program before user authentication is complete. If the Telnet service is running with root privileges, this can lead to the execution of attacker-controlled code with full system privileges.

While a direct, unauthenticated root takeover is not possible solely through an open Telnet port, successful exploitation requires an attacker to be able to write a file on the target system. This prerequisite means that other, less severe vulnerabilities that allow file writes could be chained with CVE-2026-141380 to achieve full system compromise, even if the attacker does not possess valid login credentials.

Levy confirmed successful exploitation on Debian 13 “Trixie,” Ubuntu 25.04 and 25.10, and Kali Linux Rolling. The affected packages include Debian's Netkit-based telnetd and telnetd-ssl, as well as Gentoo's net-misc/netkit-telnetd. While Debian 11 “Bullseye” is also susceptible to accepting untrusted settings, its older version of util-linux may not support the specific login feature exploited in one of the attack paths.

Defenders are advised to identify which Telnet servers are installed and accessible on their networks. If Telnet is not essential, it should be disabled. For remote administration, the more secure SSH protocol is strongly recommended. If Telnet must remain active for legacy systems, access should be strictly limited to trusted management hosts, and TCP port 23 should not be exposed to untrusted networks.

Levy proposed solutions that involve restoring strict checks on client-supplied settings or filtering the data passed to the login program. However, no official patches have been released by the affected distributions or the Netkit project as of the disclosure. Users should monitor their distribution's security advisories for updates specifically addressing CVE-2026-141380.

It is important to note that this vulnerability is distinct from other passwordless Telnet access methods, such as those used by the Kairos botnet, as it bypasses the authentication mechanism itself. Until a definitive patch is available and confirmed, organizations should prioritize disabling Telnet services or restricting their network exposure over relying solely on password security.

Synthesized by Vypr AI