Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconDeliver crafted config or session file to victim
-
DeliveryVictim opens file in Notepad++ pre-8.9.7
-
ExploitRun Dialog processes oversized $(VARIABLE) token
-
InstallUnbounded loop overflows wchar_t[MAX_PATH] stack buffer
-
C2Adjacent stack frames corrupted
-
ExecuteBypass or trigger __report_gsfailure
-
ImpactCode execution or forced crash in victim user context
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Stack buffer bounds checking
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires Notepad++ prior to version 8.9.7 running on Windows, and the victim must actively trigger the Run Dialog with input containing a |
| Impact | The CVSS 7.8 score is reasonable given High impacts on Confidentiality, Integrity, and Availability, but the local-only attack vector (AV:L) and mandatory user interaction (UI:R) substantially constrain real-world exploitation. An attacker cannot reach this vulnerability over the network without a separate delivery mechanism; the victim must open a crafted file or configuration and interact with the Run Dialog. Attack complexity is low (AC:L), meaning that once delivery is achieved, triggering the overflow is straightforward. The lack of a CISA KEV listing and no identified public exploit code at time of analysis suggest this has not yet been adopted by threat actors, though the patch-to-exploit timeline for well-documented stack overflow bugs is historically short. EPSS data was not provided and exploitation probability cannot be independently confirmed. Windows stack cookie protection ( |
| Exploit ScenarioDerived | An attacker crafts a Notepad++ Run Dialog command or configuration file containing a |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Aug 17, 2026
Stack-based buffer overflow in Notepad++ before version 8.9.7 enables local code execution or process termination through the Run Dialog's variable expansion routine. The expandNppEnvironmentStrs function copies Notepad++ variable names from $(...) syntax into a fixed-size wchar_t str[MAX_PATH] stack buffer without bounding the loop index m, allowing any variable name of 260 or more wide characters to corrupt adjacent stack memory and trigger __report_gsfailure or, with precise crafting, execute arbitrary code. No public exploit has been identified at time of analysis, and this CVE is not listed in the CISA KEV catalog.
RemediationAI
The primary remediation is upgrading Notepad++ to version 8.9.7 or later, available at https://github.com/notepad-plus-plus/notepad-plus-plus/releases/tag/v8.9.7. The patch introduces a bounds check (m < MAX_PATH - 1) in the inner loop of expandNppEnvironmentStrs, preventing writes beyond the stack buffer. For environments where immediate upgrade is not possible, a compensating control is to restrict or disable use of the Notepad++ Run Dialog through organizational policy or application configuration management - note this may disrupt developer workflows that rely on custom run commands. User education to avoid opening untrusted Notepad++ session files or configuration files from unknown sources reduces delivery risk. No vendor-documented workaround short of upgrading has been identified.
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 vulnerable code is in PowerEditor/src/WinControls/StaticDialog/RunDlg/RunDlg.cpp within the expandNppEnvironmentStrs function. Notepad++ supports a Run Dialog feature allowing users to embed token variables using $(VARIABLE_NAME) syntax in command strings. The function extracts the variable name between $( and ) and copies it character-by-character into a stack-allocated wchar_t str[MAX_PATH] buffer - where MAX_PATH is 260 on Windows - using a loop index m that was never bounded against MAX_PATH - 1. A variable name of 260 or more wide characters therefore writes past the buffer boundary into adjacent stack frames. The fix in commit 0a9527e9f7140a2323e25d14e362b46ee0efc3db adds the guard m < MAX_PATH - 1 to the loop condition. Notably, a developer comment previously read 'Since I'm sure the length will be 256, I won't check the lstrlen: watch out!' - confirming the risk was acknowledged but unaddressed. CWE-121 (Stack-based Buffer Overflow) precisely classifies this root cause. Windows stack cookies invoke __report_gsfailure upon detecting corruption, which typically crashes the process rather than allowing silent exploitation, but crafted payloads can potentially bypass this protection.
Know when the next one hits your stack
- 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 attack vector (AV:L) as no network path exists; user must interact with Run Dialog (UI:R); no attacker privileges needed since exploitation relies on a crafted input file (PR:N).
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.org
Notepad++ is a free and open-source source code editor. Prior to 8.9.7, the expandNppEnvironmentStrs function in PowerEditor/src/WinControls/StaticDialog/RunDlg/RunDlg.cpp copies a Notepad++ variable name between $( and ) into the fixed-size wchar_t str[MAX_PATH] stack buffer without bounding the m loop index, allowing a name of 260 or more characters to corrupt adjacent stack data, terminate the process through __report_gsfailure, and potentially execute code. This issue is fixed in version 8.9.7.
Executive ViewAI
Notepad++ before version 8.9.7 contains a stack buffer overflow in the Run Dialog variable expansion feature that enables local code execution. Employees using Notepad++ are vulnerable to attack through malicious variable inputs, risking workstation compromise, data theft, and lateral movement into corporate networks.
Restrict Run Dialog feature to privileged users only; enforce registry controls disabling variable expansion if supported; implement endpoint detection and response (EDR) rules triggering on abnormal Notepad++ child process spawning; conduct security awareness training on not executing untrusted scripts in Notepad++ Run Dialog; evaluate alternative text editors without this vulnerability as replacements.
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
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
A stack-based buffer overflow occurs when a program writes more data to a buffer located on the stack than it was allocated to hold.
EUVD-2026-60372
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB