CVE-2026-141380: Pre-authentication environment-variable injection in Netkit Telnet
CVE-2026-141380 is a pre-authentication environment-variable injection vulnerability in Netkit telnetd implementations incorporating Debian's ACCEPT_USERVAR changes. During NEW-ENVIRON negotiation, suboption() accepts variables if either envvarok() approves them or the client-controlled is_uservar flag is set, allowing unauthenticated clients to bypass the environment allowlist. The variables enter the daemon environment before startslave() forks the login child and are subsequently forwarded through the privileged telnetlogin wrapper to the system login program. With an attacker-controlled file already present on the target, this can enable root code execution or passwordless root login. Identified affected packages include Debian's Netkit-based telnetd and telnetd-ssl from source package telnet version 0.17-42 and earlier, Ubuntu and Kali derivatives, and Gentoo's net-misc/netkit-telnetd.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can compromise confidentiality, integrity, and availability through root-level code execution or authentication bypass. A root-run daemon can pass an injected preload setting to the login process, executing attacker-controlled code before authentication. A separate path involving util-linux login 2.40 or later can bypass normal authentication even when telnetd runs under an unprivileged account. Both demonstrated compromise paths require an attacker-controlled file on the target; network exposure alone is insufficient. Injected environment variables are confined to the individual connection's daemon process rather than contaminating subsequent independent sessions. Successful testing was reported, but exploitation in the wild was not established.
Mitigation
If you can’t patch tonight, do this now.
Disable unnecessary Telnet services and use SSH for remote administration. Where Telnet must remain enabled, restrict access to trusted management hosts and block untrusted access to its listening port, normally TCP 23. Running telnetd under an unprivileged account blocks the disclosed root-daemon preload route but does not prevent the util-linux login authentication-bypass route. Restrict untrusted file creation and address arbitrary-file-write vulnerabilities that could satisfy the exploitation prerequisite. Strong passwords do not prevent the disclosed authentication bypass.
Remediation
Patch, then assume compromise.
No released fixed package version is identified in the available information. Proposed code fixes are to remove the '|| is_uservar' allowlist bypass, disable ACCEPT_USERVAR entirely, or enforce a strict environment allowlist in telnetlogin before invoking the system login program. These proposals should not be treated as released vendor patches. Apply a distribution security update when available, verifying that it explicitly addresses CVE-2026-141380 for the installed Netkit package. Updates addressing CVE-2026-28372 in GNU Inetutils do not remediate this Netkit vulnerability.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2026-141380 exploited in the wild?
- As of Dec 3, 2026, Mallory has no reports of CVE-2026-141380 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-141380?
- As of Dec 3, 2026, Mallory has found no public exploit for CVE-2026-141380.
- Is there a patch for CVE-2026-141380?
- No released fixed package version is identified in the available information. Proposed code fixes are to remove the '|| is_uservar' allowlist bypass, disable ACCEPT_USERVAR entirely, or enforce a strict environment allowlist in telnetlogin before invoking the system login program.
Recent activity
21 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.