Skip to content
Netkit Telnetd Flaw CVE-2026-141380 Enables Root Code Execution on Debian-Based Systems

Netkit Telnetd Flaw CVE-2026-141380 Enables Root Code Execution on Debian-Based Systems

First seen 3 Dec 2026, 10:48 UTC • •

Article Content

Browse articles
ThreatCluster AI
ThreatCluster •December 3, 2026 at 10:49 UTC
  • •CVE-2026-141380 lets unauthenticated remote attackers inject environment variables into netkit telnetd, reportedly enabling root code execution on Debian-derived systems.
  • •Affected packages include Debian telnetd/telnetd-ssl (telnet 0.17-42 and earlier) and Gentoo netkit-telnetd; Ubuntu, Kali and Debian 13 were confirmed by the researcher.
  • •Exploitation also requires the attacker to write a file on the target, which can come from another vulnerability.
  • •The articles report successful testing only; no in-the-wild exploitation is reported.
  • •Recommended action is to disable telnetd, move to SSH, and block TCP port 23 at the network edge until a patch is available.

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.

Start a free Starter trial for enhanced analysis

Ask AI about this cluster

Or ask in your own assistant: ClaudeChatGPTPerplexityGemini

Timeline

2026-02-27
CVE-2026-28372 published
Vulnerability assigned a CVE identifier and published in the National Vulnerability Database.
MITRE
2026-12-02
CVE-2026-141380 disclosed on OSS-Security
Researcher Liad Levy disclosed the netkit telnetd flaw, which one article rates CVSS 3.1 9.8 for the root-execution path.
Cybersecuritynews
2026-12-03
Gbhackers reports root code execution flaw
Gbhackers reports the issue affects Debian, Ubuntu, Kali and Gentoo telnetd packages and that Levy confirmed exploitation on several distributions.
Gbhackers

More articles in this cluster (5)

Following this threat?

Track GNU and CVE-2026-141380 in your own feed — you're alerted when they show up in new reporting, leak sites or exploitation.

Free account · no card needed

Common questions

Am I affected?
Systems running Debian's netkit telnetd or telnetd-ssl (telnet 0.17-42 and earlier), or Gentoo netkit-telnetd, may be affected. One article notes that the installed package, login version and service configuration matter more than the distribution name alone.
Is this being exploited?
The articles report successful lab exploitation by the researcher; they do not report exploitation in the wild.
What should we do first?
Disable telnetd where it is not needed and move remote administration to SSH. If Telnet must stay, restrict port 23 to trusted management hosts, since no patch is reported as released.