Net2Shell
Remote Shell Acquisition via the Secure SHell Protocol
CVE-2026-NET2SHELL
Abstract
This document describes a critical vulnerability in which a remote party, given a hostname, a username and a password, can obtain an interactive shell on a server. Unlike other members of the 2Shell family, Net2Shell has a genuine network attack vector. Also unlike them, that was the whole point of the software.
Status of This Memo
This memo is not an Internet Standard. It has been reviewed by nobody, approved by fewer people, and posted on four social networks before the vendor was contacted.
1. Introduction
Recent disclosures, including PowerShell2Shell and Cmd2Shell, demonstrated that a local user with a shell can obtain a shell. Critics pointed out that both required the attacker to already be sitting at the machine.
Net2Shell answers those critics. It obtains a shell from anywhere on Earth, provided the attacker has been given an account.
2. Conventions Used in This Document
The key words MUST, SHOULD and MAY are to be interpreted as follows:
The attacker MUST know the password. The attacker SHOULD know the username, though “admin” works more often than it ought to. Defenders MAY panic.
3. Vulnerability Description
The Secure SHell protocol, listening by default on TCP port 22, accepts network connections and, after authentication, provides the remote party with a shell. The word “shell” is in the protocol’s name. We consider this a full disclosure by the original authors that was simply never acted on.
A legacy variant, Net2Shell Classic, affects Telnet on TCP port 23. It is functionally identical, except that everyone on the network also learns the password, making it the first 2Shell vulnerability with a sharing feature.
4. Exploitation
The complete proof of concept follows:
ssh you@your-own-server
The exploit then prompts for a password. Researchers found that entering the correct password resulted in a shell in 100% of trials. Entering an incorrect password did not, which the vendor describes as “a mitigation” and we describe as “a limitation of the exploit”.
5. Sequence Diagram
Figure 1 shows a typical attack. Connections are visualised in real time, by which we mean slowly.
Figure 1: Net2Shell attack flow.
6. Severity
- Base score
- 10.0 (Critical)
- Attack vector
- Network. Finally.
- Privileges required
- An account you were given on purpose
- User interaction
- Typing the password
- Impact
- Exactly what the admin intended
7. Affected Systems
Every server, router, Raspberry Pi and smart fridge with port 22 open. Researchers scanning the internet found millions of exposed instances, all behaving correctly.
8. Mitigation
1. Do not give people accounts.
2. If people must have accounts, do not tell them the password.
3. Move SSH to port 2222. This prevents nothing but feels wonderful.
4. Replace the network with carrier pigeons, per RFC 1149. Latency improves security considerably.
9. Security Considerations
This entire document is security considerations.
10. IANA Considerations
IANA is requested to rename TCP port 22 from “ssh” to “the vulnerability”. IANA has not replied, which the author takes as consent.
11. Related Work
| Name | Year | Network attack vector? |
|---|---|---|
| Shellshock | 2014 | Yes, via CGI scripts |
| Log4Shell | 2021 | Yes, via a log line |
| Spring4Shell | 2022 | Yes, via HTTP |
| Text4Shell | 2022 | Sometimes |
| React2Shell | 2025 | Yes, via React Server Components |
| PowerShell2Shell | 2026 | No. You were already there |
| Cmd2Shell | 1990s | No. You were already there, in beige |
| Net2Shell | 2026 | Yes, and it’s in the name of the protocol |
| paint.net2shell | 2026 | See subdomain. Unrelated. Please stop asking |
12. Acknowledgements
The author thanks the pigeons of RFC 1149 for their pioneering work in high-latency transport, and every sysadmin who has ever typed ssh without realising they were exploiting a critical vulnerability.
Author’s Address
A. Researcher
Net2Shell Lab
127.0.0.1, port 22
Password: please don’t
Net2Shell is a joke. No vulnerability is described here. SSH is fine. Please keep using SSH.