Forgotten but Not Gone: Unauthenticated RCEs and LPEs in Legacy Linux Services

No ratings

Presented at Black Hat USA 2026 by

The cybersecurity industry constantly chases the greatest risks in the latest tech, while old components developed with outdated security principles gather dust. Companies rush to secure their latest AI-based product, while their network remains the same. Do attackers really need prompt injections, malicious IDE extensions, or cloud vulnerabilities to take you down? Or maybe legacy services hiding right under our noses are as big a threat?We started asking this question when an unauthenticated RCE was discovered in GNU-TelnetD back in January. As we analyzed it and released an exploit, we were fascinated by the fact that such a simple shell injection had existed in the most popular telnet daemon for so long, while networks are full of devices running telnet servers.To verify our thesis, we further investigated Telnet and discovered that it runs a root-privileged process with environment variables supplied by an unauthenticated client! Leading us to a privilege escalation on any device running GNU-TelnetD.We then moved on to investigate Samba - the Linux package used by various devices in organizational networks to enable SMB support. Remembering the shell injection found in TelnetD, we searched for formatting logic in proximity to command execution - and we couldn't believe the attack surface! Two more shell injection RCEs were just lying there waiting for us!In this Briefing, we'll make you ask yourself, "Is it really 2026? How come it was only found now?!" We will analyze the unauthenticated RCE in TelnetD, and reveal three severe vulnerabilities that were hiding in plain sight - Two unauthenticated RCEs in Samba (CVE-2026-4480 & CVE-2026-4408) and a privilege escalation in TelnetD (CVE-2026-28372). Those services might still run on your routers or printers that you keep forgetting to update, and they put your whole organization at risk.