Gbhackers Netkit Telnetd Flaw CVE-2026-141380 Enables Root Code Execution on Debian-Based Systems
Article Content
- •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.
Ask AI about this cluster
Answers cite the sources they use
Timeline
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?
Is this being exploited?
What should we do first?
Continue Reading
React Server Components RCE Vulnerability CVE-2025-55182 Disclosed and Patched A critical unauthenticated remote code execution vulnerability, CVE-2025-55182, exists in React Server Components, reported by Lachlan Davidson on November 29 and rated CVSS 10.0. The flaw lies in how React decodes payloads sent to React Server Function endpoints. Vulnerable versions are 19.0, 19.1.0, 19.1.1, and…
Chinese-speaking cluster deploys EAGERBEE, ShadowRelay and PhantomNet backdoors in Russian and Belarusian networks Securelist researchers monitoring EAGERBEE (also tracked as Donnect, Thumtais and HDMan), a modular backdoor used by several Chinese-speaking groups including CoughingDown, Worok and Obstinate Mogwai, found telemetry from dozens of infected hosts in Russia and Belarus. They identified a previously undocumented…