---
title: netkit telnetd CVE-2026-141380: pre-auth environment injection in Debian's telnetd-ssl build can mean root RCE when the daemon runs as root | ctxsec
url: https://ctxsec.com/items/netkit-telnetd-cve-2026-141380-pre-auth-newenviron-uservar-env-injection-debian-telnetd-ssl
description: "A researcher disclosed on oss-security that Debian's netkit telnetd 0.17 patch set (built with ACCEPT_USERVAR) lets a client mark NEW-ENVIRON variables as USERVAR and bypass the envvarok() allowlist, setting arbitrary environment variables before login. Where the daemon runs as root (legacy inetd entries, units without User=, Gentoo's xinetd config), LD_PRELOAD is honored and the reporter rates it pre-auth root RCE (CVSS 9.8), provided one attacker-writable file exists on the target."
status: "researcher disclosure (oss-security)"
published: 2026-12-02
---

> A researcher disclosed on oss-security that Debian's netkit telnetd 0.17 patch set (built with ACCEPT_USERVAR) lets a client mark NEW-ENVIRON variables as USERVAR and bypass the envvarok() allowlist, setting arbitrary environment variables before login. Where the daemon runs as root (legacy inetd entries, units without User=, Gentoo's xinetd config), LD_PRELOAD is honored and the reporter rates it pre-auth root RCE (CVSS 9.8), provided one attacker-writable file exists on the target.

[← Cybersecurity News](/news) · [markdown](/items/netkit-telnetd-cve-2026-141380-pre-auth-newenviron-uservar-env-injection-debian-telnetd-ssl.md)

researcher disclosure (oss-security)

2026-12-02 2:43 PM ET

### netkit telnetd CVE-2026-141380: pre-auth environment injection in Debian's telnetd-ssl build can mean root RCE when the daemon runs as root

- Debian's shipped inetd entry runs the daemon as non-root, which the disclosure treats as a different, more limited case.
- Some X posts say Debian, Ubuntu and Kali are affected; the disclosure itself names Debian's telnetd-ssl package and Gentoo's config. Check your distro's tracker.
- Easiest fix: remove telnetd or block TCP 23; telnet should not be exposed.

Sources: [oss-security (Dec 2, 2026)](https://seclists.org/oss-sec/2026/q4/975)
