Skip to navigation

Threat reportVulnerabilityTL-2026-7357

Netkit Telnet server (telnetd) Debian-patch flaw enables passwordless root access - CVE-2026-141380

criticalACTIVE

Debian's patch series for Netkit telnetd (packages telnetd and telnetd-ssl, also Gentoo net-misc/netkit-telnetd) lets a remote client set arbitrary environment variables before authentication by flagging them as USERVAR. A setuid helper forwards them to /bin/login, which gives passwordless root when the attacker can write one file on the target.

By

Key facts

IdentifiersTL-2026-7357, CVE-2026-141380, CVE-2026-24061, CVE-2026-28372
SeverityCRITICAL
CVSS9.8
First disclosed
Exploitation statusLinked CVE exploited in the wild; Listed in CISA KEV: CVE-2026-24061 (added )
EPSSCVE-2026-24061: 98.9% (99.9th percentile); CVE-2026-28372: 0.4% (37.2th percentile)
Affected productsDebian telnetd / telnetd-ssl (source packages netkit-telnet, netkit-telnet-ssl); Ubuntu telnetd (netkit-telnet derived); Kali Linux telnetd (netkit-telnet derived); Gentoo net-misc/netkit-telnetd
Weaknesses (CWE)CWE-15, CWE-454
MITRE ATT&CK techniquesT1059.004 Unix Shell, T1133 External Remote Services, T1190 Exploit Public-Facing Application, T1556 Modify Authentication Process, T1574.006 Dynamic Linker Hijacking, T1595.002 Vulnerability Scanning
MotivationUNKNOWN
Target sectorstechnology, telecoms, manufacturing, government administration
Target regionsGlobal
Detection rules9 (1 shown free)
Sources6 cited sources

Detection coverage

As of 2026-12-03, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-7357 across Splunk SPL, Microsoft KQL and Sigma, covering 8 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.

Free detection: Netkit telnetd CVE-2026-141380 - Root Shell Spawned From telnetlogin/login Chain (Exploitation)

Detects the outcome of CVE-2026-141380 (TL-2026-7357): the Debian-patched Netkit telnetd chain in.telnetd -> telnetlogin (setuid helper) -> /bin/login ends in a root shell. Pairs a telnetlogin/in.telnetd process start with a root shell spawned by login on the same host within 30 seconds. Root over Telnet is normally blocked by securetty/PAM, so a root shell here is consistent with the passwordless-root result of both the LD_PRELOAD path (root-run daemon, constructor runs inside /bin/login) and the login.noauth/CREDENTIALS_DIRECTORY path (non-root daemon, util-linux 2.40+, USER=root). The result is an unauthenticated session on a local account (valid account abuse, T1078.003) obtained by exploiting an internet-facing service. Sysmon for Linux does not record process environments, so the rule keys on the resulting behaviour, not on the injected USERVAR variables (LD_PRELOAD, CREDENTIALS_DIRECTORY, USER=root). Requires Sysmon for Linux (EventCode 1).

  • Languages: Splunk SPL, Microsoft KQL, Sigma
  • ATT&CK: T1190, T1556, T1078.003, T1059.004
  • Data sources: sysmon_for_linux, index=linux sourcetype=sysmon:linux
  • Severity: critical
  • Confidence: high

Splunk SPL

index=linux sourcetype=sysmon:linux EventCode=1 ((Image=*/telnetlogin OR Image=*/in.telnetd) OR (ParentImage=*/login User=root (Image=*/bash OR Image=*/sh OR Image=*/dash OR Image=*/zsh)))
| eval stage=if(match(Image, "/(telnetlogin|in\.telnetd)$"), "telnet_helper", "root_shell")
| bin _time span=30s
| stats dc(stage) as stages values(Image) as images values(ParentImage) as parents values(CommandLine) as cmdlines by host _time
| where stages=2

Microsoft KQL

DeviceProcessEvents
| where Timestamp > ago(24h)
| where FileName in~ ('bash','sh','dash','zsh')
| where InitiatingProcessFileName =~ 'login'
| where InitiatingProcessParentFileName in~ ('telnetlogin','in.telnetd','telnetd')
| where AccountName =~ 'root'
| project Timestamp, DeviceName, AccountName, FileName, ProcessCommandLine, InitiatingProcessFileName, InitiatingProcessCommandLine, InitiatingProcessParentFileName

Sigma

title: Root Shell Spawned By login (Netkit telnetd CVE-2026-141380 Exploitation)
id: 7b0f3c1e-5a52-4d0e-9a41-2c6e8f1d7a01
status: experimental
description: Detects an interactive root shell spawned by /bin/login. With Debian-patched Netkit telnetd (CVE-2026-141380) this is the outcome of passwordless root via LD_PRELOAD or login.noauth. Sigma cannot express the telnetlogin grandparent, so correlate with telnetd activity on the host.
references:
    - https://openwall.com/lists/oss-security/2026/12/02/4
    - https://security-tracker.debian.org/tracker/CVE-2026-141380
author: Threadlinqs Team
date: 2026/12/03
tags:
    - attack.initial-access
    - attack.t1190
    - attack.credential-access
    - attack.t1556
    - attack.defense-evasion
    - attack.persistence
    - attack.privilege-escalation
    - attack.t1078.003
    - attack.execution
    - attack.t1059.004
    - cve.2026.141380
logsource:
    category: process_creation
    product: linux
detection:
    selection:
        ParentImage|endswith: '/login'
        Image|endswith:
            - '/bash'
            - '/sh'
            - '/dash'
            - '/zsh'
        User: 'root'
    condition: selection
falsepositives:
    - Legitimate root logins on a local console or serial line
    - Administrators permitted to log in as root over Telnet via securetty
level: high

Known false positives:

  • Legitimate root logins over Telnet on legacy systems where securetty/PAM permit root
  • Telnet-based break-glass or lab administration performed as root

Tuning notes: Adjust index/sourcetype to your Sysmon for Linux ingestion. Widen the span if host clocks drift. Where Telnet is permitted, exclude known management source addresses by joining with network telemetry. Any hit on a host that should not run telnetd is high priority. Pair with the login.noauth (SPL-002) and root-run telnetd (SIG-002) detections to identify which exploitation path was used.

8 more detection rules (Splunk SPL, Microsoft KQL, Sigma) · unlock with TL Creds. Sign up free to unlock the detection rules or query them with the Threadlinqs MCP server (Purple and Gold in full, 2 calls a day on a free account)
  • Netkit [indicator] CVE-2026-141380 - Inbound Telnet Followed by Root Login Shell (Exploitation) · unlock with TL Creds
  • Netkit [indicator] CVE-2026-141380 - Shared Object Dropped in World-Writable Directory (LD_PRELOAD Staging) · unlock with TL Creds
  • Netkit [indicator] CVE-2026-141380 - Outbound Telnet From Linux Servers (Lateral Movement) · unlock with TL Creds
  • Netkit [indicator] CVE-2026-141380 - telnetlogin Helper Launching [indicator] (Exposure / Exploitation Hunting) · unlock with TL Creds
  • Netkit [indicator] CVE-2026-141380 - Telnet Daemon Running as Root (LD_PRELOAD-Exposed Configuration) · unlock with TL Creds
  • Netkit [indicator] CVE-2026-141380 - Shell Interpreter Making Outbound Connection (Post-Root Reverse Shell / C2) · unlock with TL Creds
  • Netkit [indicator] CVE-2026-141380 - [indicator] File Created (Credentials Directory Auth Bypass) · unlock with TL Creds
  • Netkit [indicator] CVE-2026-141380 - Telnet Scanning and Repeated Connection Bursts on TCP/23 · unlock with TL Creds

Indicators of compromise

As of 2026-12-03, Threadlinqs Intelligence tracks 8 indicators of compromise for TL-2026-7357.

8 indicators of compromise · unlock with TL Creds. Compare plans

Technical analysis

The reporter rates it CVSS 3.1 9.8.

CVE-2026-141380 is a pre-authentication environment injection in the Netkit telnetd build shipped by Debian and derivatives. It was disclosed by researcher Liad Levy on oss-security on 2026-12-02 and tracked in Debian bug #1156205. The Debian build is compiled with -DACCEPT_USERVAR, and patch 124-support_uservar.diff changes the NEW-ENVIRON handler in suboption() (telnetd/state.c). A variable is now accepted when envvarok(varp) || is_uservar is true, so any variable the client flags as USERVAR is set with setenv() and skips the envvarok() whitelist. The client controls the flag. The variables are set during option negotiation, before startslave() forks the login child, so the child inherits the poisoned environment. The setuid-root telnetlogin helper forwards the environment to /bin/login and validates only TERM and REMOTEHOST. The ACCEPT_USERVAR build dates to 2015.

Path 1 applies when the daemon runs as root, for example legacy inetd entries, service units without User=, or Gentoo's shipped xinetd configuration. No privilege transition happens, AT_SECURE is not set, and glibc honors LD_PRELOAD. An attacker-supplied shared object's constructor then runs as root inside /bin/login before authentication. This needs one attacker-writable file on the target. Without it the loader prints an error and continues. Examples of a file-write primitive are an arbitrary file write, path traversal in an upload handler, zip-slip, user-controlled temp files, a low-privilege RCE, or an existing .so left by an earlier compromise.

Path 2 applies when the daemon runs as non-root, as in Debian's shipped inetd entry. telnetlogin sets AT_SECURE, so glibc strips LD_* variables, but CREDENTIALS_DIRECTORY is not stripped. In util-linux login 2.40 and later, PAM authentication is skipped if $CREDENTIALS_DIRECTORY/login.noauth exists and contains 'yes'. Injecting USER=root and CREDENTIALS_DIRECTORY=<writable dir> gives a root shell with no password prompt. This needs the three-byte login.noauth file in a writable directory. The reporter says payloads using HOME or PROMPT_COMMAND do not persist to later logins, because inetd forks a fresh daemon per connection.

The reporter confirmed passwordless root on Debian 13 trixie (0.17.41+really0.17-6, util-linux login 2.41.5, non-root inetd entry), and reports Ubuntu 25.04, Ubuntu 25.10 and Kali Linux Rolling as affected because they use the same source package. Debian 11 bullseye (util-linux 2.36) accepts the injection, but the login.noauth path needs util-linux 2.40 or later. The Debian Security Tracker lists bookworm, trixie, forky and sid as vulnerable with no fixed version. It is a different bug from CVE-2026-28372, a local-only variant in GNU Inetutils telnetd, and from CVE-2026-24061, the GNU Inetutils USER='-f root' bypass. The Inetutils fixes do not fix Netkit. The 9.8 score is the reporter's CVSS 3.1 rating for the root pre-authentication RCE case, and no vector string was published. No in-the-wild exploitation, public PoC release, attribution or IOCs are reported. The primary sources describe tested exploitation only.

MITRE ATT&CK techniques by tactic:

Execution

T1059.004 Unix Shell

Initial Access

T1133 External Remote Services; T1190 Exploit Public-Facing Application

Credential Access

T1556 Modify Authentication Process

defense-impairment

T1556 Modify Authentication Process

stealth

T1574.006 Dynamic Linker Hijacking

Defense Evasion

T1574.006 Dynamic Linker Hijacking

Reconnaissance

T1595.002 Vulnerability Scanning

Remediation

Patches

  • No fixed version was listed in the Debian Security Tracker on 2026-12-03 (unfixed in bookworm, trixie, forky and sid)
  • The GNU Inetutils fix for CVE-2026-28372 does not fix Netkit telnetd

Immediate actions

  • Inventory hosts running netkit-telnetd, telnetd or telnetd-ssl and note where TCP/23 is reachable
  • Disable Telnet where it is not needed and use SSH for remote administration
  • Where Telnet must remain, restrict TCP/23 to trusted management hosts and block it from untrusted networks
  • Do not run the Telnet daemon as root; Debian's shipped non-root inetd entry blocks the LD_PRELOAD path but not the login.noauth path on util-linux 2.40+
  • Hunt for unexpected login.noauth files and unexpected shared objects in world-writable directories

Workarounds

  • Stop and disable the telnetd service and inetd/xinetd entries
  • Remove the telnetd and telnetd-ssl packages
  • Reporter's proposed source fixes (not released): revert the '|| is_uservar' change in suboption(), remove ACCEPT_USERVAR from the build, or make telnetlogin whitelist the environment it forwards to login

Longer-term hardening

  • Replace Telnet with SSH across the estate
  • Remove file-write primitives that would let an attacker place the required file (upload handlers, temp-file handling, low-privilege RCE)
  • Monitor distribution security notices for an update that names CVE-2026-141380

Affected and fixed versions

  • Debian — telnetd / telnetd-ssl (source packages netkit-telnet, netkit-telnet-ssl)
    Vulnerable versions: 0.17-42 and earlier; bookworm 0.17.41+really0.17-3; trixie 0.17.41+really0.17-6; forky/sid 0.17.41+really0.17-8; bullseye (injection only; login.noauth path needs util-linux 2.40+)
  • Ubuntu — telnetd (netkit-telnet derived)
    Vulnerable versions: 25.04; 25.10
  • Kali Linux — telnetd (netkit-telnet derived)
    Vulnerable versions: Rolling
  • Gentoo — net-misc/netkit-telnetd
    Vulnerable versions: Packages applying Debian patches (runs as root under shipped xinetd config; LD_PRELOAD path)

Timeline

  • Per the reporter, the Debian Netkit telnetd build with -DACCEPT_USERVAR dates to 2015 (year only; the date shown is a placeholder for that year).
  • Upstream bug-inetutils report for the related GNU Inetutils telnetd USER bypass (CVE-2026-24061) is filed in 2026-01 (month only per Debian tracker URL; day is a placeholder).
  • Related GNU Inetutils telnetd USER='-f root' authentication bypass (CVE-2026-24061) is discussed on oss-security (thread dated 2026-01-20 in search results).
  • Liad Levy publishes the CVE-2026-141380 pre-authentication environment injection in Debian-patched Netkit telnetd on oss-security, with a self-assigned CVSS 3.1 score of 9.8.
  • Cyber Security News publishes coverage, noting that no in-the-wild exploitation or released patch is cited and that the GNU Inetutils CVE-2026-28372 fix does not cover Netkit.
  • Debian Security Tracker (checked 2026-12-03) tracks CVE-2026-141380 under bug #1156205 and lists bookworm, trixie, forky and sid as vulnerable with no fixed version.

Sources cited

Other reports on CVE-2026-24061

AI-drafted from 6 cited sources; published ; last updated —.

Threadlinqs Intelligence — Real-Time Threat Detection Platform

// threat_feed
$ sort --newest
Showing all threats

Live intelligence console

Threat level

Latest Threats