CVE-2026-9002 lets anyone who opens Notepad obtain a fully interactive shell.
The shell is the document. Authentication is the blinking caret, which had already logged in as you.
Save As shell.bat is the exploit. “Do you want to save changes?” is the ransom.
Notepad2Shell is a design-level vulnerability in the text editor. When Notepad
launches, it offers a fully interactive input surface and writes every keystroke
into a buffer with the privileges of the person sitting there. Notepad does not
run the commands. It writes them down. That is the vulnerability, and also the
product. Saving the buffer as shell.bat is when the metaphor ends
and the double-click begins.
The attack is a walk down the menu bar. No radio, no pairing, no second device. Just File, Edit, Format, and a filename you should not have chosen.
Or just launch Notepad. The caret is the prompt. Most sessions remain Untitled, which is a shell with commitment issues.
The buffer accepts anything you type, including commands you were afraid to run in a real shell. F5 inserts the date. The date is not an answer. It is the only command Notepad ever shipped.
A command that does not fit on one line cannot finish its sentence. This is not how shells work. It feels responsible, which is why the Format menu offers it.
The extension is the executable bit. .txt was a promise. .bat, .cmd, and .ps1 are a cousin waiting to happen. The asterisk clears. The shell does not.
A capture of the blank document, the Save As, and the first commands after the file stops being a metaphor.
Do you want to save changes to Untitled?
This question is the ransom. There is no logout.
Any editor that will hold a command long enough for someone to name the file. Threat intelligence indicates the scarce ingredient is the courage to choose a filename.
| Product | Vector | Impact | Severity |
|---|---|---|---|
| notepad.exe (1985–present) | File → New. The caret blinks with intent. | User shell, then SYSTEM if you Save As and run it | CRITICAL |
| Windows 11 Notepad | Tabs. Each one is a session. None have been introduced. | Multiple unsaved shells | CRITICAL |
| Notepad++ | The plus is a shell you installed and then left on PATH. | Same buffer, more plugins | CRITICAL |
| WordPad | It died, which is the only patch note we trust. | Historical | HIGH |
| The pad on the fridge | Persistence via magnet. Payload: “buy milk”. | Runs when the door opens | HIGH |
| Microsoft Paint | None known | Still just a drawing | NOT AFFECTED |
This page is the advisory, and it still has an asterisk in the title bar, which is the most honest status a report can have. The vendor was notified and asked if we had tried F5. F5 inserted the date. The date is the disclosure.
No vendor patch is available. Until one is released, these help a little.
The most effective control. Opening it “to paste a command you are afraid to run” is the command.
The asterisk is a promise you can break. The document is still a session. It is just a shy one.
.txtRenaming the file is the exploit, the patch, and the file’s entire career. Cowardice is a control.
It inserts the date, and the date is not an answer. It is also the only command Notepad ever shipped.
A command that does not fit on one line cannot finish its sentence. This is not how shells work. It feels responsible, which is why the Format menu offers it.
If the dialog asks whether you want to save changes, that question is the ransom. Choose No, then walk away from the idea that this was meeting notes.