Skip to content
RCE Write-up Intermediate

CVE-2026–24061 GNU InetUtils Telnetd Authentication Bypass Vuln

The telnetd service in GNU InetUtils passes the client-supplied USER environment variable into the login command line without validation, allowing the -f flag to be injected. An attacker with network access could obtain a root shell without any credentials.

Eternal Edge Follow

Published on medium.com

11 yıl boyunca keşfedilmeyen bu açık, tek bir ortam değişkeni manipülasyonu ile root shell elde etmenizi sağlıyor.

Eternal Edge, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the telnetd start_login function substitutes the unvalidated client-supplied USER environment variable into the login command line, allowing injection of the -f flag that bypasses authentication.

Impact

An attacker with network access could obtain a root shell without credentials, and no authentication record is created for the session.

What the attacker needed

Network access to the telnetd service; telnet client supporting -a

How it was found

  1. Start the vulnerable telnetd Docker container, which logs in as a normal user.
  2. Confirm the telnet client supports the -a option, which sends the USER environment variable automatically.
  3. Connect with the telnet client using the -a option and no password.
  4. The server runs login with -f root and opens a root shell.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Telnet is an old way to get a command line on a remote computer. This bug lets someone tell the server their username in a special way that tricks it into skipping the password check and giving full administrator (root) access.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.