Skip to main content

netkit telnetd CVE-2026-141380

CRITICAL
2026-12-02
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Connect to telnetd on port 23
  2. Delivery
    Place attacker-writable file on target
  3. Exploit
    Inject USERVAR variables via NEW-ENVIRON negotiation
  4. Execution
    setuid-root telnetlogin forwards poisoned env to /bin/login
  5. Impact
    Execute code as root pre-authentication

Vulnerability Assessment

Exploitation Conditions

Requires netkit telnetd / Debian telnetd-ssl (source 'telnet', 0.17-42 and earlier, built with -DACCEPT_USERVAR since 2015) installed and reachable on TCP/23 - not a default-installed service. The single prerequisite common to every path is one attacker-writable file on the target (via a separate arbitrary-write/path-traversal/zip-slip primitive, a low-priv RCE foothold, or persistence on an already-compromised host). Path 1 (daemon running as root - legacy inetd without User=, or Gentoo's shipped xinetd config): needs a pre-placed attacker-writable ELF shared object for the LD_PRELOAD constructor to run as root; without such a file the loader prints 'cannot be preloaded ... ignored' and execution continues harmlessly. Path 2 (Debian's shipped non-root inetd entry, AT_SECURE set, LD_* stripped): needs a writable directory holding a three-byte login.noauth file containing 'yes' plus injected USER=root and CREDENTIALS_DIRECTORY, AND util-linux login >= 2.40 (Debian 11 bullseye's 2.36 is injectable but not vulnerable to this login.noauth bypass). Limiting factors: service must be installed and listening, the writable-file primitive must already exist, and the auth-bypass variant depends on util-linux >= 2.40.

Impact

No CVSS vector, CWE, EPSS score, or KEV entry is present in the input (NVD shows N/A across the board), and the vuln.today Decision label is 'awaiting_data', so the usual exploitation-probability and automation signals (EPSS, SSVC automatable/technical-impact) cannot be read directly - this gap must be weighed against the researcher's strong first-hand claims. The researcher claims a pre-auth network root RCE (self-rated CVSS 3.1 9.8) and reports end-to-end verification yielding an unauthenticated root shell on Debian 13 trixie, Ubuntu 25.04/25.10, and Kali rolling. However, that 9.8 self-rating overstates real-world risk: every documented path requires an additional attacker-writable file on the target (a separate write primitive, LPE foothold, or persistence scenario), which is a precondition outside the attacker's control, so true attack complexity is High rather than Low. The injection itself (NEW-ENVIRON USERVAR bypass) is genuinely remote and pre-authentication, but weaponization is deployment-dependent: the LD_PRELOAD root-RCE path only applies where the daemon runs as root (legacy inetd, no User=, Gentoo's xinetd config), while Debian's shipped non-root inetd entry instead needs the CREDENTIALS_DIRECTORY/login.noauth auth-bypass, which additionally requires util-linux >= 2.40. Net: a real and serious priority for anyone actually running netkit/telnetd-ssl, but tempered by low product prevalence, the mandatory writable-file prerequisite, and the absence of KEV/EPSS confirmation of widespread exploitation - treat as high severity, moderate real-world urgency pending the awaiting_data decision maturing.

Exploit ScenarioDerived

A remote unauthenticated attacker opens a Telnet connection to port 23 and, during initial option negotiation, marks arbitrary variables as USERVAR so they are setenv()'d into the daemon before any login; the setuid-root telnetlogin wrapper then forwards the poisoned environment to /bin/login. On a root-running daemon the attacker injects LD_PRELOAD pointing at a pre-placed attacker-writable shared object, whose constructor runs as root before authentication; on Debian's non-root default they instead inject USER=root plus CREDENTIALS_DIRECTORY pointing at a directory containing a three-byte login.noauth 'yes' file, skipping PAM entirely. No public exploit code is identified in the input, but the researcher reports verified end-to-end pre-auth root shells on Debian 13, Ubuntu 25.04/25.10, and Kali.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Dec 02, 2026

Pre-authentication environment variable injection in netkit telnetd, as built by Debian's telnetd-ssl package with -DACCEPT_USERVAR, lets a remote unauthenticated client set arbitrary variables during Telnet NEW-ENVIRON negotiation before the login child is forked. The advisory reports end-to-end pre-auth root shells on Debian 13, Ubuntu 25.04/25.10 and Kali when one attacker-writable file already exists: with a root daemon, a writable ELF enables LD_PRELOAD execution as root; with Debian's non-root inetd entry and util-linux login >= 2.40, a three-byte login.noauth file plus injected USER=root and CREDENTIALS_DIRECTORY bypasses PAM. No CISA KEV entry or EPSS score is provided, and the priority label is awaiting_data; the independent assessment assigns CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H because the writable-file precondition and service exposure limit exploitation.

RemediationAI

No vendor-released patch identified at time of analysis; the advisory's suggested code fixes are to revert the || is_uservar relaxation in suboption(), drop ACCEPT_USERVAR from the build, or make telnetlogin enforce a whitelist on the environment it forwards. Until a patched package is available, remove the telnetd/telnetd-ssl package or its inetd/xinetd entry where Telnet is not required, and block TCP/23 from untrusted networks; these remove exposure but do not fix the injection. Avoid running the daemon as root to close the LD_PRELOAD path, but note that Debian's non-root inetd entry remains exploitable through the login.noauth path when util-linux login >= 2.40 is present, so also ensure no attacker-writable file or directory can supply the preload object or the three-byte login.noauth file; this is only a partial mitigation because any separate write primitive satisfies the prerequisite. Advisory: https://seclists.org/oss-sec/2026/q4/975.

Affected ProductsAI

Affected is Debian's telnetd / telnetd-ssl from the 'telnet' source package, version 0.17-42 and earlier, with ACCEPT_USERVAR builds dating to 2015; Debian 13 trixie 0.17.41+really0.17-6, Ubuntu 25.04/25.10 and Kali rolling (which ship the same source package) were verified vulnerable end-to-end, and Debian 11 bullseye's util-linux 2.36 is affected by the injection but not by the login.noauth bypass, which requires util-linux login >= 2.40. Gentoo net-misc/netkit-telnetd is also affected because it applies Debian's patch series and its shipped xinetd config runs the daemon as root. The service is not default-installed and must be reachable on TCP/23; no CPE strings are provided. Advisory: https://seclists.org/oss-sec/2026/q4/975.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected code is netkit telnetd 0.17 as packaged by Debian (source package 'telnet'), where the build uses -DACCEPT_USERVAR and Debian patch 124-support_uservar.diff alters the NEW-ENVIRON suboption handler in telnetd/state.c's suboption() to accept client-marked USERVAR values: the check envvarok(varp) || is_uservar lets the client-controlled is_uservar flag bypass the environment whitelist and call setenv() before startslave() forks the login child. The child inherits the poisoned environment, and the setuid-root telnetlogin wrapper forwards it to /bin/login while validating only TERM and REMOTEHOST. In the root-daemon case no privilege transition occurs in the exec chain, AT_SECURE is not set, and glibc honors LD_PRELOAD, so an attacker-writable shared object's constructor executes as root inside /bin/login before authentication; without that file the loader ignores the preload. In the non-root case telnetlogin's setuid(0) sets AT_SECURE and glibc strips LD_*, but CREDENTIALS_DIRECTORY is not stripped, and util-linux login >= 2.40 honors a login.noauth file containing 'yes' while telnetd's start_login() passes the injectable USER as a login argument, allowing USER=root plus CREDENTIALS_DIRECTORY to skip PAM. The source input provides no CVSS, CWE or CPE data; the independent assessment assigns CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H, and the advisory notes a related local-only login mechanism, CVE-2026-28372, in GNU inetutils telnetd.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

vuln.today AI 9.0 CRITICAL

Remote pre-auth injection gives AV:N/PR:N/UI:N; the mandatory attacker-writable-file precondition outside attacker control forces AC:H; privilege transition to root via the setuid wrapper gives S:C and C/I/A:H.

3.1 AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Estimated by vuln.today — no official severity rating has been published for this CVE yet.

Description PRE-NVD

Disclosed via oss-security. NVD scoring and full description are pending.

Executive ViewAI

Why It Matters

A critical vulnerability in netkit telnetd, as packaged by Debian, allows unauthenticated remote attackers to inject environment variables during Telnet negotiation, potentially leading to root compromise on Debian 13, Ubuntu 25.04/25.10, and Kali systems. This affects any organization running these distributions with telnetd-ssl and the ACCEPT_USERVAR option, enabling attackers to gain full control of vulnerable hosts. Leadership should prioritize immediate action because exploitation could result in complete system compromise and data breach.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include: disable telnetd-ssl service entirely if not needed; if required, restrict access to trusted IP ranges via firewall; remove or secure any attacker-writable files (especially ELF files or login.noauth) on systems running telnetd; use network segmentation to limit exposure; monitor for unusual environment variable injection attempts.

Threat Intelligence Overview

Prevalence
Low
legacy telnet daemon, not installed by default, niche deployment
Social Media
2
Sightings
Data Quality
1 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS N/A
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

Attack Technique

Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy