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-telnet2root — Scanner and interactive exploit for CVE-2026-24061 in inetutils-telnetd, enabling pre-auth root access via crafted NEW-ENVIRON negotiation. Includes multi-threaded scanning and Docker lab. | Kitploit
Tools/GitHubGitHub/furkankayapinar/cve-2026-24061-telnet2root
Vulnerability ScannersExploitationNetwork SecurityPenetration TestingRemote Access ToolLabs & Practice
GitHubfurkankayapinar/cve-2026-24061-telnet2root

CVE-2026-24061-telnet2root

Scanner and interactive exploit for CVE-2026-24061 in inetutils-telnetd, enabling pre-auth root access via crafted NEW-ENVIRON negotiation. Includes multi-threaded scanning and Docker lab.

View Repository
1218 months 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 Vulnerability Scanner & Exploit

License CVE

👨‍💻 Author: Furkan KAYAPINAR (@FurkanKAYAPINAR)

Overview

This repository contains a vulnerability scanner and an interactive exploit for CVE-2026-24061. This vulnerability affects inetutils-telnetd (and potentially other Telnet implementations) through improper handling of the NEW-ENVIRON Telnet option, allowing for remote pre-authentication access using the -f root payload.

Features

  • scanner.py: A multi-threaded, efficient scanner supporting single targets, CIDR subnets, and IP lists. It includes an optional --exploit flag for verifying RCE.
  • exploit.py: A robust, interactive Telnet client that automates the exploit chain and drops the user into a root shell upon success.
  • Lab Environment: A Dockerized Ubuntu environment running a vulnerable version of inetutils-telnetd for safe testing.

Installation

Ensure you have Python 3.x installed.

git clone https://github.com/FurkanKAYAPINAR/CVE-2026-24061-telnet2root.git
cd CVE-2026-24061-telnet2root

## Usage

1. Vulnerability Scanner

Scan targets for the NEW-ENVIRON vulnerability.

# Scan a single target
python3 scanner.py -t 192.168.1.100 -p 1903

# Scan a subnet
python3 scanner.py -s 192.168.1.0/24 -p 1903

# Scan a list of IPs and attempt active exploitation (RCE check)
python3 scanner.py -l ips.txt -p 1903 --exploit

2. Interactive Exploit

Gain interactive root shell access.

python3 exploit.py -t 127.0.0.1 -p 1903

Lab Environment Setup

Deploy a local vulnerable environment for testing:

  1. Navigate to the lab directory:
    cd lab
    
  2. Build and start the container:
    docker-compose up -d --build
    
    The service will be listening on port 1903.

Technical Details

The vulnerability is triggered during the Telnet negotiation phase. By responding to the server's DO NEW-ENVIRON request with a specially crafted IS VAR "USER" VALUE "-f root" sub-negotiation packet, the server-side telnetd process is tricked into passing the -f root flag to the login process, bypassing authentication.

Disclaimer

[!WARNING]
This tool is for educational and authorized security testing purposes only. Unauthorized access to computer systems is illegal and unethical.

Download Tool