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

- **Source:** [https://threatcluster.io/cluster/b0cfc928](https://threatcluster.io/cluster/b0cfc928)
- **Cluster ID:** `1a0b270a-ee29-41eb-a704-ca71b0cfc928`
- **Actionability:** 75.59200000000001  |  **Threat:** 72.18384  |  **Severity:** 82.7872
- **Articles:** 4  |  **Date range:** 2026-12-03T04:04:43+00:00 → 2026-12-03T06:19:58+00:00
- **Keywords:** critical, telnetd, vulnerability, allows, remote, root, flaw

## Summary

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.

Key Points:
• 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.

## 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.

## Severity reason

A pre-authentication root code execution flaw with public research exploitation rates high, though it requires a companion file-write condition and no in-the-wild use is reported.

## Timeline

- 2026-02-27 — CVE-2026-28372 published
- 2026-03-13 — CVE-2026-32746 published
- 2026-12-02 — CVE-2026-141380 disclosed on OSS-Security
- 2026-12-03 — Gbhackers reports root code execution flaw

## Entities

- **company:** GNU, Debian, Ubuntu
- **cve:** CVE-2026-141380, CVE-2026-28372, CVE-2026-32746
- **cwe:** CWE-120 - Classic Buffer Overflow, CWE-22 - Path Traversal, CWE-287 - Improper Authentication
- **mitre_attack:** T1574 - Hijack Execution Flow
- **platform:** Gentoo, GNU InetUtils, Kali Linux, Linux

## Sources (5)

- [Critical Telnetd Vulnerability Allows Hackers to Execute Remote Code With Root Privileges](https://gbhackers.com/critical-telnetd-vulnerability-2/)  *(Gbhackers, 2026-12-03T06:19:58+00:00)*
- [Exploit for CVE-2026-141380](https://sploitus.com/exploit?id=89C39EB5-DFE5-5C1F-973D-C2CD94ACD861&utm_source=rss&utm_medium=rss)  *(Sploitus, 2026-12-04T17:01:42+00:00)*
- [Exploit for CVE-2026-141380](https://sploitus.com/exploit?id=F519384F-F10B-55A9-9319-121DED4952A6&utm_source=rss&utm_medium=rss)  *(Sploitus, 2026-12-03T20:46:16+00:00)*
- [Critical Telnet Flaw Lets Hackers Gain Root Access to Ubuntu and Kali Linux Without Passwords](https://cybersecuritynews.com/netkit-telnet-vulnerability/)  *(Cybersecuritynews, 2026-12-03T04:04:43+00:00)*
- [CVE-2026-28372 in GNU Inetutils](https://app.opencve.io/cve/CVE-2026-28372)  *(app.opencve.io, 2026-12-03T04:31:17.178365+00:00)*

---

_Source: [ThreatCluster](https://threatcluster.io/cluster/b0cfc928). Cite as: ThreatCluster (https://threatcluster.io)._
