CVE-2026-20841 Arbitrary Code Execution in the Windows Notep...#1921
Open
carlospolop wants to merge 1 commit intomasterfrom
Open
CVE-2026-20841 Arbitrary Code Execution in the Windows Notep...#1921carlospolop wants to merge 1 commit intomasterfrom
carlospolop wants to merge 1 commit intomasterfrom
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://www.thezdi.com/blog/2026/2/19/cve-2026-20841-arbitrary-code-execution-in-the-windows-notepad Content Categories: Based on the analysis, this content was categorized under "🕸️ Pentesting Web -> Open Redirect / URI handlers OR 🪟 Windows Hardening -> Windows Local Privilege Escalation (as a new subpage better placed under Windows security 'Protocol Handlers / ShellExecute(Ex) abuse' or 'URI Scheme Handler Attacks'); alternatively a new page under Generic Hacking for 'ShellExecuteExW / protocol handler execution via crafted links (Markdown/HTML)'.". Repository Maintenance:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
Title / Context
ZDI (TrendAI Research Team) write-up of CVE-2026-20841, a command injection / arbitrary code execution issue in the modern Windows Notepad (
Notepad.exe) caused by improper validation of Markdown links. Exploitation yields arbitrary command/file execution in the security context of the logged-in victim (no privilege elevation is implied). The attack requires user interaction: the victim must open a malicious <cod...🔧 Technical Details
Markdown link → OS protocol handler execution (ShellExecuteExW abuse): When a Markdown-capable application turns link targets into clickable UI elements and forwards the link target into
ShellExecuteExW()(or equivalent shell dispatch) without strict allowlisting of schemes and paths, an attacker can place dangerous protocol URIs (e.g.,file:,ms-appinstaller:) inside Markdown links ([text](target)or autolinks<target>). On click, Windows selects the registered protocol handler and executes/opens the referenced content, enabling code execution in the user’s context. The exploitability and payload options expand with any additional protocol handlers registered on the target system.Autolink parity: Inline links of the form
<link/path>are rendered as[link/path](link/path), so both syntaxes must be considered when crafting payloads and when writing detections.🤖 Agent ActionsSummary:
file:/ms-appinstaller:schemes.Updated files:
src/windows-hardening/protocol-handler-shell-execute-abuse.mdsrc/windows-hardening/windows-local-privilege-escalation/README.mdTests:
This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.
📚 Repository Maintenance
All .md files have been checked for proper formatting (headers, includes, etc.).