CVE-2026-141380: Netkit Telnetd Root Flaw in Debian, Ubuntu
TL;DR · the short version
CVE-2026-141380 is a pre-authentication environment injection flaw in netkit telnetd as Debian builds it. Researcher Liad Levy disclosed it on oss-security on 2 December 2026: a Debian patch from 2015 lets a client-marked "user variable" skip telnetd's allowlist, so a remote client with no account can set environment variables that reach the login program before authentication. Combined with a file the attacker controls on the target, Levy says that gives a root shell without a password; he scores it CVSS 3.1 9.8 and says he verified it on Debian 13, Ubuntu 25.04 and 25.10 and Kali rolling. Debian's tracker lists netkit-telnet-ssl as vulnerable in bookworm, trixie, forky and sid, with no fix yet (bug #1156205, grave). No exploitation is reported and it is not in CISA KEV. Find and remove telnet servers, block TCP 23 and use SSH.
A flaw in the netkit telnet server (telnetd) that Debian, Ubuntu and Kali ship can give a remote attacker a root shell without a password, under two conditions. Researcher Liad Levy disclosed CVE-2026-141380 on the oss-security list on 2 December 2026. He traces it to a Debian patch that changed how telnetd handles environment variables sent by the client before login. The attacker must reach a vulnerable telnetd and control a file on the target; an open port 23 alone is not enough. Debian's security tracker lists the netkit build it ships as vulnerable in every current release, with no fixed version yet. No exploitation in the wild is reported, and this is not a breach of Debian, Canonical or OffSec.
Who this is for: anyone running Debian, Ubuntu, Kali or Gentoo servers, appliances or lab machines where a telnet server may still be installed, and the security leaders who own legacy remote access.
Based on Levy's oss-security post, Debian's security tracker, Debian bug #1156205 and Debian's package listings, read on 3 December 2026. Ubuntu's CVE page returned a server error when we checked, and we found no Kali or Gentoo advisory. PlayCISO publishes no exploit steps or payloads.
Confirmed vs not yet known
Debian confirms (security tracker, 3 Dec): netkit-telnet-ssl is vulnerable in bookworm (0.17.41+really0.17-3), trixie (0.17.41+really0.17-6) and forky/sid (0.17.41+really0.17-8); no fixed version exists for netkit-telnet or netkit-telnet-ssl. Debian filed bug #1156205 at severity grave on 2 December.
The researcher reports (Levy, 2 Dec): affected are Debian telnetd and telnetd-ssl 0.17-42 and earlier and Gentoo net-misc/netkit-telnetd; verified end to end on Debian 13 and, he says, on Ubuntu 25.04, 25.10 and Kali rolling; CVSS 3.1 9.8 for the case where telnetd runs as root (his score).
Not yet known: when fixed packages will ship; Ubuntu's own status (its CVE page was down on 3 December); any statement from OffSec (Kali) or Gentoo; whether anyone has exploited it. No CVE record was published on cve.org or NVD when we checked, and it is not in CISA KEV (catalog 2026.11.30). cybersecuritynews reports that no patch has been released, which matches Debian's tracker.
How the flaw works, in short
Telnet lets the client send environment variables to the server during option negotiation (the NEW-ENVIRON option), before anyone logs in. telnetd is meant to accept only a short allowlist of harmless names. Levy says Debian builds netkit telnetd with an option (ACCEPT_USERVAR, patch 124-support_uservar.diff, dating to 2015) under which any variable the client marks as a "user variable" is set even when it is not on the allowlist. The client fully controls that mark, so the allowlist is bypassed, and the variables are passed to the login program before authentication.
Levy describes two paths, both needing one file on the target that the attacker controls:
- telnetd running as root (for example from a legacy inetd or xinetd entry): injected variables that affect how programs load their libraries can make the login program run attacker code with root privileges. This is the case he scores 9.8.
- telnetd running as a normal user: a credentials-related setting honoured by util-linux login 2.40 and later can make login skip PAM authentication. Levy says Debian 11's util-linux 2.36 lacks that feature, although the injection itself still works there.
Injected variables stay inside the attacker's own telnet session, Levy notes, so they cannot change a later login by someone else.
Useful next, if this was relevant to you
Timeline
| Date | Event | Source |
|---|---|---|
| 2015 | Debian's ACCEPT_USERVAR build of netkit telnetd introduced (per Levy) | oss-security |
| 2 Dec 2026, 14:26 UTC | Liad Levy publishes the advisory and CVE-2026-141380 on oss-security | oss-security |
| 2 Dec 2026, 22:43 UTC | Debian files bug #1156205 against netkit-telnet-ssl, severity grave, tagged security | Debian BTS |
| 3 Dec 2026 | Debian's tracker: vulnerable in bookworm, trixie, forky and sid; no fixed version | Debian security tracker |
| 3 Dec 2026 | No CVE record on cve.org or NVD yet; not in CISA KEV (catalog 2026.11.30) | CVE.org, CISA KEV |
What security leaders should do this week
- Find every telnet server. Ask teams to check Debian, Ubuntu, Kali and Gentoo hosts, including images, appliances, lab boxes and pentest VMs. Note which package is installed: on Debian 12 and 13 the package named
telnetdinstalls inetutils-telnetd (not listed for this CVE), whiletelnetd-sslis the affected netkit build; on Debian 11,telnetditself is netkit 0.17-42.
# Which telnet servers are installed? (telnetd-ssl is the affected netkit build on Debian 12/13)
dpkg -l | grep -i telnetd
apt-cache policy telnetd-ssl telnetd inetutils-telnetd
# Is anything listening on TCP 23, and what started it?
ss -ltnp | grep ':23 '
systemctl list-units --all '*telnet*'
systemctl list-sockets --all | grep -i telnet
grep -rn telnet /etc/inetd.conf /etc/xinetd.d/ 2>/dev/null
- Remove it and use SSH. No fixed package exists yet, so the fix today is to stop and purge the netkit telnet server. Before you disable inetd or xinetd, check nothing else depends on them.
# No fixed package exists yet: stop and remove the server, then confirm port 23 is closed
sudo systemctl disable --now inetd.service xinetd.service 2>/dev/null # only if telnet is all they run
sudo apt purge telnetd-ssl # Debian 12/13, Ubuntu, Kali
sudo apt purge telnetd # Debian 11 bullseye (netkit 0.17-42)
ss -ltn | grep ':23 ' || echo "Nothing listening on 23"
- Block TCP 23 (and 2323) at the edge and between zones. Allow it only from an isolated management network for any device that truly has no SSH.
- Check how the service starts. Look at inetd, xinetd and systemd socket units, not just running processes: an on-demand telnet service shows nothing until someone connects.
- Review who can write files on those hosts. Both paths need a file the attacker controls, so upload features, shared directories and low-privilege accounts on a host that also runs telnetd are what turn this into root.
- Watch for the fixed package. Track Debian's tracker, Ubuntu's CVE page and your Kali and Gentoo sources for an update that names CVE-2026-141380, and only reinstall a telnet server if you have a real need.
Put this in context with the vulnerability prioritizer, see why Telnet is on every legacy-port list in the port risk lookup, and practise writing the zone rules in the Firewall Lab. The Debian and Canonical (Ubuntu) entries in the Breach Index track this flaw by vendor.
Frequently asked questions
What is CVE-2026-141380?
A pre-authentication environment injection flaw in netkit telnetd as Debian builds it. Researcher Liad Levy says a remote client with no account can set environment variables that reach the login program before authentication, because a Debian patch lets a client-marked "user variable" skip telnetd's allowlist. With a file the attacker controls on the target, that can end in a root shell without a password. Levy scores the worst case CVSS 3.1 9.8.
Which systems are affected by the netkit telnetd flaw?
Per Levy: Debian telnetd and telnetd-ssl 0.17-42 and earlier, and Gentoo net-misc/netkit-telnetd, which applies Debian's patches. He verified it end to end on Debian 13 trixie (telnetd-ssl 0.17.41+really0.17-6) and says he also verified Ubuntu 25.04, Ubuntu 25.10 and Kali rolling. Debian's security tracker lists netkit-telnet-ssl as vulnerable in bookworm, trixie, forky and sid. Only machines running this telnet server are affected.
Is the "telnetd" package on Debian 13 affected?
On Debian 12 bookworm, 13 trixie and forky, the package called telnetd is a transitional package that installs inetutils-telnetd, a different telnet server that Debian's tracker does not list for this CVE. The netkit build Debian still ships in those releases is telnetd-ssl. On Debian 11 bullseye, telnetd is netkit 0.17-42, which Levy lists as affected. Check which package you actually have before deciding.
Can someone get root just because port 23 is open?
No, not from what Levy describes. Both of his paths need the attacker to reach a vulnerable telnetd AND to control a file on the target, for example through an upload feature or a low-privilege foothold. An open port is still the first condition, and it also exposes everything telnet sends in cleartext.
Is there a patch for CVE-2026-141380?
Not as of 3 December 2026. Debian's security tracker shows no fixed version in any release and Debian filed bug #1156205 at severity grave on 2 December. Levy proposes reverting the Debian change, dropping the ACCEPT_USERVAR build option, or having the login helper enforce its own allowlist. Until a fixed package ships, remove or disable the netkit telnet server.
Is CVE-2026-141380 being exploited?
No source we read reports exploitation in the wild. Levy reports successful tests, not attacks. It is not in CISA's KEV catalog (version 2026.11.30), and no CVE record had been published on cve.org or NVD when we checked on 3 December.
Is this the same as the GNU inetutils telnetd flaws from earlier in 2026?
No. Levy says a local-only variant of the same login mechanism was handled earlier as CVE-2026-28372 in GNU inetutils telnetd; that fix does not change netkit telnetd. inetutils-telnetd is a separate server with its own 2026 advisories, so if you run it, check it against those.
Was Debian, Ubuntu or Kali hacked?
No. This is a vulnerability in a telnet server package these distributions ship, not a breach of Debian, Canonical or OffSec. The flaw traces to a Debian build choice that, per Levy, dates back to 2015.
Sources
- Liad Levy, "Pre-authentication environment injection in netkit telnetd - CVE-2026-141380", oss-security, 2 December 2026
- Debian security tracker, CVE-2026-141380, read 3 December 2026
- Debian bug #1156205, netkit-telnet-ssl: CVE-2026-141380, 2 December 2026
- Debian package search: telnetd (transitional package in bookworm, trixie and forky)
- Ubuntu CVE-2026-141380 (returned a server error on 3 December 2026)
- CVE.org: CVE-2026-141380 (no record published on 3 December 2026)
- CISA Known Exploited Vulnerabilities catalog (not listed, catalog 2026.11.30)
- cybersecuritynews.com, "Telnet Flaw Lets Hackers Gain Root Access to Ubuntu and Kali Linux Without Passwords", 3 December 2026 (secondary)
Spotted an error? Report an error. A person reads every message.