Skip to main content
Layered exploit stack behind this report, with the fault at Root Execution. Illustration: SecurityXP

Pre-authentication environment injection in netkit telnetd - CVE-2026-141380

· 2 min read · SecurityXP

Key Facts

  • This is pre-auth network root RCE (CVSS 3.1: 9.8).
  • However, CREDENTIALS_DIRECTORY is not stripped, and /bin/login from util-linux >= 2.40 honors it: if $CREDENTIALS_DIRECTORY/login.noauth exists and contains "yes", login skips PAM authentication entirely.
  • oss-sec mailing list archives Pre-authentication environment injection in netkit telnetd - CVE-2026-141380 From: liad levy <liadlevy1999 () gmail com> Date: Wed, 2 Dec 2026 16:26:37 +0200 Hello, I am reporting a pre-authentication remote code execution via environment-injection vulnerability affects the netkit telnetd implementation used by Debian’s telnetd-ssl package.
  • A related local-only variant of this login mechanism was already addressed as CVE-2026-28372 (in GNU inetutils telnetd); this finding reaches the same mechanism remotely and pre-auth through the netkit telnetd injection.
  • Exploitation requires one attacker-writable file on the target (any write primitive); without it, the loader merely prints "ERROR: ld.so: object ...

This is pre-auth network root RCE (CVSS 3.1: 9.8). However, CREDENTIALS_DIRECTORY is not stripped, and /bin/login from util-linux >= 2.40 honors it: if $CREDENTIALS_DIRECTORY/login.noauth exists and contains “yes”, login skips PAM authentication entirely. The issue is tracked as CVE-2026-141380, CVE-2026-28372 (rated up to CVSS 3.1). Affected deployments include - Local privilege escalation from an existing foothold: any low-privilege RCE (webshell, compromised CI runner) plus a running telnetd, even on localhost only. Affected - Debian telnetd / telnetd-ssl (source “telnet”, 0.17-42 and earlier; the ACCEPT_USERVAR build dates back to 2015): vulnerable. - telnetd-ssl verified vulnerable end-to-end on Debian 13 trixie (0.17.41+really0.17-6, stock util-linux login 2.41.5, shipped non-root inetd entry): pre-auth root shell.

Vulnerability Mechanics

Attack path: CVE-2026-141380 → Chain to CVE-2026-28372 → Root Execution.

oss-sec mailing list archives Pre-authentication environment injection in netkit telnetd - CVE-2026-141380 From: liad levy <liadlevy1999 () gmail com> Date: Wed, 2 Dec 2026 16:26:37 +0200 Hello, I am reporting a pre-authentication remote code execution via environment-injection vulnerability affects the netkit telnetd implementation used by Debian’s telnetd-ssl package. A related local-only variant of this login mechanism was already addressed as CVE-2026-28372 (in GNU inetutils telnetd); this finding reaches the same mechanism remotely and pre-auth through the netkit telnetd injection. Exploitation requires one attacker-writable file on the target (any write primitive); without it, the loader merely prints “ERROR: ld.so: object …

Affected - Debian telnetd / telnetd-ssl (source “telnet”, 0.17-42 and earlier; the ACCEPT_USERVAR build dates back to 2015): vulnerable. Suggested fixes - Revert the ”|| is_uservar” relaxation in suboption(), or - drop ACCEPT_USERVAR entirely, or - have telnetlogin enforce a whitelist on the environment it forwards. Daemon runs as root (legacy inetd entries, units without User=, Gentoo’s shipped xinetd config): no privilege transition occurs in the exec chain, AT_SECURE is never set, and glibc honors LD_PRELOAD.

Patched Releases and Mitigations

Summary Debian’s patch series builds netkit telnetd 0.17 with -DACCEPT_USERVAR. Patch 124-support_uservar.diff modifies the NEW-ENVIRON suboption handler in suboption() (telnetd/state.c) so that any variable the client marks as USERVAR is accepted and setenv()‘d: if (envvarok(varp) || is_uservar) setenv(…); The client fully controls the is_uservar flag, so the envvarok() whitelist is bypassed. - Gentoo net-misc/netkit-telnetd (applies Debian’s patch series; its shipped xinetd config runs the daemon as root): vulnerable, LD_PRELOAD path.

Tags: CVE-2026-141380 CVE-2026-28372 CVSS Date Hello Debian

Sources & References

S SecurityXP
SecurityXP Cybersecurity News & Analysis

SecurityXP delivers cybersecurity news, vulnerability analysis, data breach reports, and threat intelligence.

Security Digest

The most important cybersecurity stories, CVE alerts, and threat intelligence — one concise email. Unsubscribe anytime.

Related Articles