Technical Analysis of CVE-2026–24061 in GNU Inetutils telnetd
The telnetd service in GNU Inetutils passes the USER environment variable directly to /bin/login without validation, allowing an attacker to inject the -f option and skip password authentication. This lets an attacker log in as root and gain a privileged shell.
medium.com
Published on medium.com
CVE-2026–24061 is a high-risk vulnerability rated CVSS 9.8 (Critical), and it is a remote authentication bypass issue occurring in the telnetd service of GNU Inetutils. The vulnerability arises from telnetd blindly trusting the USER environment variable supplied during Telnet connections, without performing proper…
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 service fails to validate the USER environment variable before using it as an argument to /bin/login, allowing option injection.
What the attacker needed
Telnet service exposed to the internet; Vulnerable GNU Inetutils telnetd version
The fix
The telnetd service should validate the USER environment variable to prevent option injection, and users should disable Telnet or switch to SSH.
How it was found
- Connect to the telnetd service with a crafted USER environment variable containing the -f root option.
- The telnetd service passes the USER value to /bin/login, which interprets -f as an option to skip password verification.
- The attacker is logged in as root without providing a password and obtains 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 log into a remote computer. The login program can be told to skip the password check if it receives a special option. Here, the server took a username from the connection and passed it straight to the login program, so an attacker could sneak in that option and log in as the administrator without a password.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.