Pre-authentication environment injection in netkit telnetd - CVE-2026-141380
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.
Sources & References
- oss-sec: by date. Primary research blog. https://seclists.org/oss-sec/2026/q4/date.html
- oss-sec: by thread. Primary research blog. https://seclists.org/oss-sec/2026/q4/index.html
- Open Source Security Mailing List. Primary research blog. https://seclists.org/oss-sec/
- oss-sec: Django CVE-2026-115868, CVE-2026-119642, CVE-2026-124827, CVE-2026-125673, CVE-2026-127929, CVE-2026-132092, and CVE-2026-132809. Primary research blog. https://seclists.org/oss-sec/2026/q4/974
- Source referenced in coverage https://seclists.org/oss-sec/2026/q4/975
- CVE-2026-141380 — National Vulnerability Database
- CVE-2026-28372 — National Vulnerability Database
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
Cacti 4HTTP2SHELL Zero-Day: Unauthenticated RCE in Cacti 1.2.31 Exploited in the Wild
4HTTP2SHELL at a glance - Vulnerability type: Stored, second-order SQL injection leading to remote code execution - Severity: High (CVSS 8.8) - Affected…
Joomla 20261201 - Core - PHP object injection through file cache guard handling
- SubProject: CMS - Impact: Critical - Severity: Moderate - Probability: Moderate - Versions: 1.5.0-5.4.11,6.0.0-6.2.1 - Exploit type: PHP Object…
U.S. CISA adds Rejetto HTTP File Server and TYPO3 CMS flaws to its Known Exploited Vulnerabilities catalog
The following TYPO3 CMS versions are affected: - TYPO3 10.0.0 through 10.4.62 - TYPO3 11.0.0 through 11.5.56 - TYPO3 12.0.0 through 12.4.51 - TYPO3 13.0.0…
PHP 8.6.0 Carries the Fix for CVE-2026-126714, the 9.2-Rated Flaw October's Releases Left Open
PHP 8.6.0, released today, includes the fix for CVE-2026-126714, a flaw that PHP's maintainers rate 9.2 out of 10 on the CVSS 4.0 scale.