Skip to main content

Notepad++ EUVDEUVD-2026-84572

| CVE-2026-86054 HIGH
Stack-based Buffer Overflow (CWE-121)
2026-09-22 GitHub_M
7.8
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft long -settingsDir= launch argument
  2. Delivery
    Victim starts Notepad++ with it
  3. Exploit
    Session save triggers unbounded wcscpy/wcscat
  4. Execution
    Overflow backupPathName[MAX_PATH]
  5. Impact
    Stack 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

notepad-plus-plus < 8.9.8

Affected Packages

euvd notepad_plus_plus fix: 8.9.8

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

Vendor (GitHub_M) PRIMARY 7.8 HIGH
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 3.3 LOW

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.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

2
Patch available
Sep 22, 2026 - 18:02 EUVD
CVE Published
Sep 22, 2026 - 17:12 cve.org
HIGH 7.8

DescriptionCVE.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.

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

Why It Matters

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.

Business Impact: Low
Compensating Controls

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

EPSS Score
0.2%
Top 90% exploitable
Prevalence
High
Notepad++ is among the most widely installed Windows source-code editors
Exploit
POC
Public exploit code exists
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
Poc
System Exposure· derived
Small
Automatable· derived
No
Human Impact
Low

Priority Score

59
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +39
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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.

CVE-2025-52691 CRITICAL POC
10.0 Dec 29

Unauthenticated remote code execution in SmarterTools SmarterMail lets an attacker upload arbitrary files to any locatio

CVE-2019-0803 HIGH POC
7.8 Apr 09

Windows Win32k fails to properly handle objects in memory, allowing local privilege escalation exploited in the wild in

CVE-2020-1472 MEDIUM POC
5.5 Aug 17

A privilege escalation vulnerability (CVSS 5.5). Risk factors: actively exploited (KEV-listed), EPSS 94% exploitation pr

CVE-2025-33053 HIGH POC
8.8 Jun 10

Windows Internet Shortcut Files (.url) contain an external control vulnerability (CVE-2025-33053, CVSS 8.8) that enables

CVE-2025-33073 HIGH POC
8.8 Jun 10

Windows SMB contains an improper access control vulnerability (CVE-2025-33073, CVSS 8.8) enabling authenticated attacker

CVE-2013-10047 CRITICAL POC
9.3 Aug 01

An unrestricted file upload vulnerability exists in MiniWeb HTTP Server <= Build 300 that allows unauthenticated remote

CVE-2025-34101 CRITICAL POC
9.3 Jul 10

Serviio Media Server versions 1.4 through 1.8 on Windows contain an unauthenticated command injection in the /rest/actio

CVE-2025-34095 CRITICAL POC
9.3 Jul 10

Mako Server versions 2.5 and 2.6 contain an unauthenticated OS command injection via the tutorial interface at examples/

CVE-2026-96951 HIGH POC
8.8 Oct 13

Command injection in the Windows Shell lets remote, unauthenticated attackers bypass a Windows security feature and then

CVE-2025-24054 MEDIUM POC
6.5 Mar 11

External control of file name or path in Windows NTLM allows an unauthorized attacker to perform spoofing over a network

CVE-2026-110936 HIGH POC
8.4 Oct 15

Siemens Software Center (all versions) loads dynamic-link libraries from an uncontrolled search path, allowing an authen

CVE-2025-32706 HIGH POC
7.8 May 13

Windows CLFS Driver contains an input validation flaw enabling local privilege escalation, yet another CLFS kernel vulne

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy