CVE

GNU telnetd Exposure Check (CVE-2026-24061)

Passive banner read of telnet services for the GNU Inetutils root-login flaw (CVE-2026-24061). A bare login prompt is not a verdict.

AuthorTrickest
100%

Notes on this workflow

GNU Inetutils telnetd exposure check for CVE-2026-24061: the telnet daemon forwards the client's USER environment variable to login(1) without sanitizing argument delimiters, so USER set to "-f root" over telnet autologin lands a root shell with no password. The bug shipped in May 2015 and sat in the tree for a decade; affected 1.9.3 through 2.7, fixed in 2.8 or a distribution backport. Zero-day exploited, KEV since 2026-01-26, due 2026-02-16 (overdue), EPSS 99.25%, the highest in our queue. The check only reads the banner: it never negotiates options and never sends a byte.

How it works: one connect-and-observe pass per host (one bounded retry on a transport error, at most 3 connections). Telnet IAC sequences and NUL padding are stripped from the banner before matching; the GNU telnet / inetutils markers confirm the daemon, the banner version classifies 1.9.3 through 2.7 affected and 2.8 or later patched, and a version below 1.9.3 predates the bug. No disclosed version means affected until a distribution patch is confirmed in-band, because Debian backports fix without moving the version to 2.8. A silent open port is no_banner, never clean.

Targets: one per line, host or host:port. The probe contacts the target port only (default TCP 23), connects, reads whatever the service pushes unprompted, and disconnects. No keystrokes, no commands, no option negotiation.

Results: out/results.jsonl keeps one row per host (verdict exposed, patched, predates_bug, not_gnu_telnetd only on a positive other-daemon identity, inconclusive for bare prompts, no_banner or error, banner, version, connection count, bytes_sent always zero) and out/findings.jsonl adds the CVE-2026-24061 context: CRITICAL severity when exposed, upgrade plus retire-telnet guidance, the "-f root" log-sweep IOC per BOD 26-04, KEV overdue note, EPSS 99.25%.

Overview

This workflow checks telnet services for CVE-2026-24061, the GNU Inetutils telnetd argument injection that has been hiding in the open-source tree since 2015. The daemon passes the client-supplied USER environment variable to the system login program without neutralizing argument delimiters, so a client that sets USER to -f root is logged in as root without a password. No credentials, no user interaction, and the exploit tooling is a telnet client option. The threat numbers are extreme: CISA listed it in KEV in January 2026 with a deadline that has long passed, honeypots logged more than a hundred exploitation connections the day after disclosure, and EPSS puts the exploitation probability at 99.3 percent, the highest score of the current queue. Telnet was supposed to be dead, and this is what happens when a dead protocol is still listening. The check is deliberately humble about what the network can prove: it connects to the telnet port, reads what the service pushes unprompted, and disconnects without sending a single byte. A real GNU telnetd prints no product banner, only a bare login prompt, so most rows are inconclusive by design and never a clean result without positive identity. Version classification happens in-band, from the distribution package changelog. Each host comes back with a verdict you can feed into exposure management.

Pipeline

  1. The targets node reads your bound target list and passes through usable lines, stripping blanks and comments, and fails closed when nothing usable remains.
  2. The parse-targets node normalizes host, host:port and URL lines into one deduplicated row per endpoint and fails closed when nothing parses.
  3. The probe node makes at most three connections per host and, on each, reads only what the service sends unprompted before disconnecting. There is no send path at all: no option negotiation, no keystrokes, no USER value. Telnet negotiation bytes are stripped without reply.
  4. The probe classifies only on positive identity. A banner that names GNU Inetutils with a version classifies 1.9.3 through 2.7 as affected, 2.8 or later as fixed, and older builds as predating the bug. A banner that positively identifies a different telnet daemon, such as BusyBox, Heimdal or netkit, clears this CVE. A bare login prompt or issue.net text names a telnet service but not the daemon family and stays inconclusive; a silent open port is recorded as no_banner. Neither is ever a clean row.
  5. The report node attaches the CVE context and a per-verdict remediation to each row and writes the findings plus summary counts.

Inputs

  • Target list. Hosts running telnet services that you are authorized to test. The default file ships a sample host; bind your own.

Outputs

  • findings.jsonl. One row per host: the target, the banner text, the classified version where a positive GNU identity exists, the verdict, severity and remediation.
  • summary.json. One object with verdict counts and the safety note: passive read only, zero bytes sent, no negotiation, no autologin attempts.

Integrations

  • TCP. Port 23 by default, at most three connections per host, connect and read then disconnect, zero bytes sent on the wire.

Sample output

The records below are illustrative and do not come from a real run. They show a positively identified vulnerable daemon, a different telnet daemon, and the honest unknown cases.

hostportverdictseveritydetailremediation
legacy1.example.net23exposedCRITICALGNU telnet 1.9.4 self-identified in the banner; inside the affected range 1.9.3 to 2.7upgrade to Inetutils 2.8 or the distribution backport, then retire the service; grep auth logs for -f root in USER negotiation
legacy2.example.net23not_gnu_telnetdINFObanner positively identifies BusyBox telnetdno action for this CVE
legacy3.example.net23inconclusiveUNKNOWNbare login prompt with no daemon attribution; a telnet service is listening but the family is unconfirmed, treat as a GNU telnetd candidate until confirmed in-bandnull
legacy4.example.net23no_bannerUNKNOWNport open, nothing sent unpromptedidentify the service in-band; this is not a clean result
{"cve": "CVE-2026-24061", "product": "GNU Inetutils telnetd", "verdict_counts": {"exposed": 1, "not_gnu_telnetd": 1, "inconclusive": 1, "no_banner": 1}, "kev": true, "epss": "99.25%", "fix": "Inetutils 2.8 or distribution backports (Debian DSA-6106-1)", "note": "passive read only, zero bytes sent, no negotiation"}

FAQ

Why is a bare login prompt not a verdict?

Because a real GNU Inetutils telnetd prints no product banner. It shows a host-info line derived from the operating system, followed by the login prompt, and a field sweep of more than two hundred thousand telnet banners found none carrying GNU markers. A bare prompt proves a telnet service is listening, not which daemon is behind it, so the check returns inconclusive and asks you to confirm the daemon family in-band. That honesty is the point: a clean row requires positive identity, never absence of evidence.

Why can the check not read the version from the network?

The daemon never emits a version string on the wire, so there is nothing to read. Classification for GNU telnetd happens in-band: check the distribution package changelog for the CVE id, since distribution backports fix the flaw without changing the upstream version number, and bare version strings alone are not reliable.

Does the check send anything at all?

No. It connects, reads whatever the service pushes unprompted, and disconnects. The probe sends zero bytes, and the workflow has no code path that negotiates telnet options, sends a USER value or attempts autologin, because a single -f root negotiation is the exploit itself: a root login on someone else's server.

How can a bug from 2015 be this urgent?

It shipped in May 2015 and sat in the tree for a decade, and telnet services quietly outlive the operators who started them. When disclosure came, exploitation needed nothing but a telnet client option, honeypots recorded attack traffic the next day, and EPSS landed at 99.3 percent. The severity comes from the combination: unauthenticated root, trivial tooling, and a service most networks forgot they were running.

What should I do about an exposed host or an unknown one?

Upgrade to Inetutils 2.8 or your distribution's backport, and then retire the service: telnet has no place exposed on a modern network. For any host in the unknown buckets, identify the daemon in-band before trusting anything. Sweep authentication logs and captures for -f root in USER negotiation; any hit is a root-level intrusion and gets CISA BOD 26-04 triage.

Get a personalized demo

See Trickest in Action

A 30-minute walkthrough. We map the platform to your stack and answer pricing and deployment questions for your environment.