Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver folder with paired text file and sibling .cmd
-
DeliveryVictim opens folder as workspace in Notepad++
-
ExploitUser invokes 'Run by system' on text file
-
ExecutionPath resolves to sibling script
-
ImpactExecute arbitrary commands as current user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | Exploitation requires all of: the victim runs Notepad++ prior to 8.9.8 on Windows 10 or Windows 11; the attacker can place files into a folder the victim will open, specifically a malicious script named as the selected text file's path with |
| Impact | The vendor CVSS of 7.8 (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H) reflects local code execution with full confidentiality, integrity, and availability impact under the current user's context. The attack vector is Local (AV:L) and requires user interaction (UI:R), so this is not a remotely-triggerable, wormable flaw - it depends on a victim opening an attacker-supplied folder as a Notepad++ workspace and explicitly invoking the 'Run by system' action on a text file. There is no EPSS score, no CISA KEV listing, and no public POC in the provided data, so this represents no public exploit identified at time of analysis; the 7.8 is driven by impact (arbitrary command execution), not by ease or likelihood of mass exploitation. The CWE-20 (improper input validation) classification and the commit evidence (switching to a |
| Exploit ScenarioDerived | An attacker distributes a project folder (e.g., via a ZIP, shared drive, or git repo) containing a benign-looking text file such as |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 22, 2026
Arbitrary code execution in Notepad++ prior to 8.9.8 on Windows 10 and Windows 11 occurs when the editor's 'Folder as Workspace' → 'Run by system' action resolves a sibling file instead of the path the user actually selected. If an attacker can place a script named after the selected text file with a .cmd extension appended (for example notes.txt.cmd next to notes.txt), invoking 'Run by system' on the text file causes that script to execute as the current user instead of opening the file. The flaw is local with a required, non-default user workflow (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, 7.8), and no public exploit identified at time of analysis; the vendor-released patch is Notepad++ 8.9.8.
RemediationAI
Upgrade to Notepad++ 8.9.8 or later - vendor-released patch: 8.9.8 - which contains the fix in commit 00fa5df0da1d4f6b334317aa979db13ac77ee24d that canonicalizes the selected path with the \\?\ literal prefix and switches to ShellExecuteEx with SEE_MASK_FLAG_NO_UI; download from the release tag https://github.com/notepad-plus-plus/notepad-plus-plus/releases/tag/v8.9.8 and see the vendor notes at https://notepad-plus-plus.org/news/v898-released and advisory https://github.com/notepad-plus-plus/notepad-plus-plus/security/advisories/GHSA-w5xq-frjg-w4cw. If immediate upgrading is not possible, the effective compensating control is behavioral: do not invoke the 'Run by system' action from the 'Folder as Workspace' pane on files located in directories that untrusted parties can write to, and when such a folder must be inspected, open the file explicitly via File → Open (which does not route through the vulnerable shell-resolution path) - the trade-off is that this breaks the convenience workflow for legitimate folders, and it does not stop similar sibling-file planting against any other shell-invoking feature. Additionally, prevent untrusted folders from reaching the endpoint at all (block or quarantine archives and shared folders that contain paired files such as name.txt and name.txt.cmd, and treat *.txt.cmd-style double extensions as suspicious at mail/web gateways); the trade-off is potential false positives on legitimate scripts, and none of these controls alter the underlying code path, so patching remains the only complete fix.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The defect sits in Notepad++'s FileBrowser control (PowerEditor/src/WinControls/FileBrowser/fileBrowser.cpp), which handles the 'Folder as Workspace' context menu. On the 'Run by system' command the pre-8.9.8 code passed the selected file's path directly to the Win32 ShellExecute() API with the 'open' verb. ShellExecute performs its own shell-level path resolution and extension discovery rather than treating the argument as a literal filesystem path, so a path whose name is ambiguous against a sibling file with a PATHEXT-style executable extension (notably .cmd on Windows) can resolve to that sibling instead of the intended text file. This is classified as CWE-20 (Improper Input Validation): the application fails to validate/canonicalize the path before handing it to a shell execution API, effectively trusting attacker-influenced directory content. The upstream fix in commit 00fa5df0da1d4f6b334317aa979db13ac77ee24d prepends the Windows extended-length literal prefix (\\?\) to the selected path and replaces ShellExecute() with ShellExecuteEx() using SEE_MASK_FLAG_NO_UI, forcing a literal, non-ambiguous resolution of the user-selected file. Applicability is Windows-specific (Windows 10 and Windows 11), since the behavior depends on Win32 shell path/extension resolution and on the attacker-supplied file living in the same directory the victim browses.
Know when Windows gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Local file-delivery vector (AV:L) with required user interaction invoking 'Run by system' (UI:R); no attacker privileges on the target needed (PR:N); resulting command execution gives full C/I/A as the current user.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
Notepad++ is a free and open-source source code editor. Prior to 8.9.8, the Folder as Workspace Run by system action in Notepad++ can resolve a different sibling file than the file selected by the user. When an attacker places a command script whose name is the selected text-file path with .cmd appended, and the user invokes Run by system on the text file on Windows 10 or Windows 11, Notepad++ can execute the sibling script as the current user instead of opening the selected file. This issue is fixed in version 8.9.8.
Articles & Coverage 1
Technical POC Analysis
Bug class: CWE-20 (Improper Input Validation), and the advisory also tags CWE-706 (Use of Incorrectly-Resolved Name or Reference).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A high-severity flaw in Notepad++ versions prior to 8.9.8 on Windows 10 and 11 lets a crafted file next to the document a user opens cause code to run under that user's own account when they use the editor's 'Run by system' feature. Because Notepad++ is widely installed on developer and IT workstations, a single user opening an untrusted file pair from a download, archive, or shared drive could hand an attacker that user's access to corporate data, credentials, and network shares. The exposure is contained to endpoints rather than servers, and it depends on a specific user action, but the resulting access is broad enough that unmanaged installations represent the main organizational risk.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Unauthenticated remote code execution in SmarterTools SmarterMail lets an attacker upload arbitrary files to any locatio
Windows Win32k fails to properly handle objects in memory, allowing local privilege escalation exploited in the wild in
A privilege escalation vulnerability (CVSS 5.5). Risk factors: actively exploited (KEV-listed), EPSS 94% exploitation pr
Windows Internet Shortcut Files (.url) contain an external control vulnerability (CVE-2025-33053, CVSS 8.8) that enables
Windows SMB contains an improper access control vulnerability (CVE-2025-33073, CVSS 8.8) enabling authenticated attacker
An unrestricted file upload vulnerability exists in MiniWeb HTTP Server <= Build 300 that allows unauthenticated remote
Serviio Media Server versions 1.4 through 1.8 on Windows contain an unauthenticated command injection in the /rest/actio
Mako Server versions 2.5 and 2.6 contain an unauthenticated OS command injection via the tutorial interface at examples/
Command injection in the Windows Shell lets remote, unauthenticated attackers bypass a Windows security feature and then
External control of file name or path in Windows NTLM allows an unauthorized attacker to perform spoofing over a network
Siemens Software Center (all versions) loads dynamic-link libraries from an uncontrolled search path, allowing an authen
Windows CLFS Driver contains an input validation flaw enabling local privilege escalation, yet another CLFS kernel vulne
EUVD-2026-84573
NVD
CVE.org
EPSS
GitHub
VulDB
Exploit-DB