Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCraft long -settingsDir= launch argument
-
DeliveryVictim starts Notepad++ with it
-
ExploitSession save triggers unbounded wcscpy/wcscat
-
ExecutionOverflow backupPathName[MAX_PATH]
-
ImpactStack canary aborts process (DoS)
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 | Requires local control of the Notepad++ -settingsDir= command-line argument set to a path long enough that appending SESSION_BACKUP_EXT exceeds the MAX_PATH stack buffer, plus user interaction: the victim must launch Notepad++ with that argument and reach a session-save operation. Exploitation is LIMITED to the local vector (no network path), depends on the attacker being able to influence the launch arguments (e.g. a malicious shortcut or portable install), and yields only a crash on protected release builds because the stack canary halts the process before further corruption; it does not affect default installations that use normal-length settings directories. |
| Impact | The vendor CVSS of 7.8 (AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H) claims full confidentiality, integrity and availability impact, but this OVERSTATES the real-world effect: the description explicitly states that the protected release build terminates through its stack canary, producing only a denial of service (the Notepad++ process crashes). There is no evidence of code execution or data exposure in shipped builds, so C:H/I:H are not supported by the described behavior - the realistic impact is loss of availability of the editor only. No EPSS score, KEV listing, or POC is provided, so the exploitation signal is: no public exploit identified at time of analysis. The attack vector is genuinely local (AV:L): exploitation requires control over the -settingsDir= startup argument pointing at an over-long path, plus user interaction to launch the editor and trigger a session save. This is a low real-world priority - a self-inflicted/local crash bug in a desktop editor, not a remotely weaponizable flaw, despite the high nominal CVSS. |
| Exploit ScenarioDerived | An attacker crafts a malicious shortcut, portable configuration, or launcher that starts Notepad++ with a very long -settingsDir= path. When the victim runs it and Notepad++ saves the session, wcscpy/wcscat overflow the fixed backupPathName[MAX_PATH] stack buffer; the stack canary detects the corruption and aborts the process, denying use of the editor. No public exploit code is identified, and shipped release builds are protected by the canary, limiting the outcome to a crash. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 22, 2026
Notepad++ installations prior to 8.9.8 crash when a local attacker can control the -settingsDir= command-line argument and points it at an abnormally long directory path. When Notepad++ subsequently saves its session, NppParameters::writeSession copies the derived session path into a fixed MAX_PATH stack buffer with unbounded wcscpy/wcscat calls and appends the session-backup suffix, overflowing the buffer; on protected release builds the stack canary halts the process, producing a denial of service rather than exploitable code execution. Exploitation requires local influence over launch arguments (for example a malicious shortcut or portable install) plus the victim actually launching Notepad++ and reaching a session-save, so default installations using normal-length settings directories are unaffected. No public exploit code and no confirmed active exploitation were identified at time of analysis, and the vendor's CVSS of 7.8 overstates impact given the assessed vector (CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L).
RemediationAI
Upgrade to Notepad++ 8.9.8 or later (vendor-released patch), which is the release that contains the fix commit 046af3f626be7715886412313fc18f58b30dfcaf and reworks writeSession to use a std::wstring instead of the fixed MAX_PATH stack buffer; see https://github.com/notepad-plus-plus/notepad-plus-plus/releases/tag/v8.9.8 and the advisory at https://github.com/notepad-plus-plus/notepad-plus-plus/security/advisories/GHSA-pxgg-96p2-c3hx. If upgrading cannot be done immediately, ensure Notepad++ is never launched with an untrusted or attacker-controllable -settingsDir= argument: audit and remove shortcuts, scripts, scheduled tasks, file associations or launcher wrappers that pass this flag, and keep any user-supplied settings directory path short enough that appending the session-backup extension cannot approach MAX_PATH. Note the trade-off that constraining -settingsDir= may break intended portable or multi-profile deployments that deliberately relocate the settings directory, and treat shortcuts pointing at arbitrary directories as untrusted, since a malicious shortcut is the most plausible delivery vector for this local, user-interaction-dependent issue. The upstream commit and PR reference confirms the fix; no patched version other than 8.9.8 should be assumed.
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 flaw is a classic stack-based buffer overflow (CWE-121) in Notepad++'s session-persistence code. In NppParameters::writeSession in PowerEditor/src/Parameters.cpp, a stack buffer declared as wchar_t backupPathName[MAX_PATH] is filled with std::wcscpy(backupPathName, sessionPathName) followed by std::wcscat(backupPathName, SESSION_BACKUP_EXT). sessionPathName is derived from the user-supplied -settingsDir= command-line option, so an attacker who controls that argument can supply a path whose length plus the backup extension exceeds MAX_PATH characters, writing past the end of the fixed-size stack array. The overflowed buffer is then passed to Windows APIs including removeReadOnlyFlagFromFileAttributes, CopyFile and ReplaceFile as part of the session backup/restore logic. On protected release builds compiled with stack-cookie protection, the corrupted canary is detected and the process is terminated, limiting the observable impact to a crash (denial of service); the CPE cpe:2.3:a:notepad-plus-plus:notepad-plus-plus:*:*:*:*:*:*:*:* confirms all versions before the fix are affected. The upstream fix replaces the fixed array with a dynamically sized std::wstring and updates the downstream API calls to use .c_str(), eliminating the length assumption entirely.
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 -settingsDir argument control with user interaction to trigger a session save; canary-terminated release build yields only an application crash, so C:N/I:N/A:L.
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, Notepad++ contains a stack buffer overflow in NppParameters::writeSession in PowerEditor/src/Parameters.cpp because it copies a session path derived from -settingsDir= into backupPathName[MAX_PATH] with unbounded wcscpy and appends SESSION_BACKUP_EXT with unbounded wcscat. A sufficiently long settings directory causes the backup suffix to exceed the fixed stack buffer when Notepad++ saves the session, and the protected release build terminates through its stack canary, causing denial of service. This issue is fixed in version 8.9.8.
Articles & Coverage 1
Technical POC Analysis
CWE-121, stack-based buffer overflow in NppParameters::writeSession (PowerEditor/src/Parameters.cpp), Notepad++.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
Notepad++ versions before 8.9.8 can be crashed locally under non-standard launch conditions, creating a denial-of-service risk for users of portable or custom-configured copies. Standard installations and normal settings directories are unaffected, and the flaw does not enable code execution or data compromise. With no public exploit identified at time of analysis, leadership should treat this as a low operational risk that warrants inventory, launch-configuration review, and version tracking rather than emergency action.
No vendor-released patch identified at time of analysis. Interim mitigations: enforce default settings directories; block or review use of the -settingsDir= command-line argument; restrict local write access to shortcuts, scripts, and portable Notepad++ launch configurations; remove unnecessary portable installs; monitor for abnormal long settings-path arguments; and instruct users to avoid launching Notepad++ from untrusted shortcuts or packages.
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.
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
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-84572
NVD
CVE.org
EPSS
GitHub
Exploit-DB