Skip to content
Access control Write-up Intermediate

Exploit Lab: CVE-2026–24061 (telnetd)

A critical authentication bypass in GNU telnetd allows remote attackers to gain root access without credentials by manipulating the USER and PATH environment variables. This flaw enables injection of arguments (specifically the -f flag) into the /usr/bin/login process, completely bypassing authentication.

josh.beck2006 Follow

Published on medium.com

humble-raptor-f30.notion.site](https://humble-raptor-f30.notion.site/Red-62-CVE-2026-24061-Telnetd-2f54c8e5237680198255ec4a8af371d3)

Josh Beck, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely, telnetd fails to sanitise environment variables (USER and PATH) before passing them to /usr/bin/login, allowing argument injection.

Impact

An attacker could gain root access remotely without credentials.

What the attacker needed

Network access to telnetd service

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Telnet is an old protocol for remote login. The telnetd server passes some environment variables to the login program. By setting these variables in a special way, an attacker can trick login into skipping the password check and giving a root shell.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by josh.beck2006

View all

2 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.