Skip to content
RCE Write-up Intermediate

CVE-2026–20841 分析:Notepad Markdown RCE 與防禦策略

Windows Notepad's Markdown renderer did not filter URI schemes in hyperlinks, so a crafted Markdown file could make a victim's click launch a remote payload. The author demonstrates a chain where the click starts a hidden script that opens a command-and-control session.

medium.com

Published on medium.com

這次測試利用了 CVE-2026–20841 (Notepad RCE) 作為初始進� �點,並結合 Living off the Land (LotL) 技術來規避防禦,實務上該攻擊可以搭� �釣魚郵件來獲得初始進� �點

segalee, 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 the Markdown parser passed link targets to the operating system without restricting which URI schemes were allowed.

Impact

A victim who clicks a crafted link could have a remote shell opened on their machine, though the attack requires user interaction and a Notepad version below 11.2510.

What the attacker needed

Notepad below version 11.2510; victim opens a malicious .md file; victim clicks the rendered link

The fix

Microsoft released a security update that whitelists only http and https schemes, or removes automatic handling of other schemes; users should update Notepad above version 11.2510.

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.

Notepad can display Markdown, a simple formatting language where a link is written as text plus a target address. The program did not check what kind of address the link pointed to, so a link could point at a file or a network share instead of a normal website. Clicking such a link could start other programs on the computer, which is how the attacker got a remote shell.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.