Skip to main content

Notepad++ CVE-2026-85279

| EUVDEUVD-2026-84570 HIGH
Stack-based Buffer Overflow (CWE-121)
2026-09-22 GitHub_M
8.6
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Trick user into installing malicious plugin
  2. Delivery
    Notepad++ loads plugin and calls GetLexerCount()
  3. Exploit
    Plugin reports >30 lexers
  4. Execution
    Loop writes past containers[30] stack array
  5. Impact
    Corrupt control data, execute code in Notepad++ 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

Requires a malicious or compromised Notepad++ plugin (a native DLL) that implements GetLexerCount() to return a value greater than 30 (NB_MAX_EXTERNAL_LANG) to be installed and loaded by the victim's Notepad++ prior to 8.9.8. Exploitation is limited by: user interaction (the victim must install/load the plugin), local access only (AV:L), and - most significantly - the fact that any loaded native plugin already runs arbitrary code in the Notepad++ process, so the practical risk uplift over simply shipping malicious plugin code is minimal. Not remotely exploitable and not triggerable via opened documents.

Impact

This is a high-CVSS (8.6) memory-corruption flaw whose real-world priority is materially lower than the score suggests, because the entire attack surface is gated behind a malicious or compromised Notepad++ plugin. The CVSS vector (AV:L/AC:L/PR:N/UI:R/S:C) confirms local access with required user interaction - the user must install and load the offending plugin. Critically, Notepad++ plugins are native DLLs that already execute arbitrary code in the process context the instant they are loaded, so the 'arbitrary code execution' this bug grants is largely redundant with the trust already extended to any plugin; a plugin able to lie about GetLexerCount() can already run shellcode directly. No EPSS score, KEV listing, or public POC is provided, consistent with a low-urgency, defense-in-depth hardening fix rather than an actively exploited threat. The S:C (scope change) in the vendor vector is questionable - corruption is confined to the Notepad++ process with no crossing of a security authority boundary, so S:U is more defensible. Net: real but low practical priority; patch on normal cadence.

Exploit ScenarioDerived

An attacker publishes or trojanizes a Notepad++ plugin and convinces a user to install it (e.g., via a plugin site or a compromised update). When Notepad++ loads the plugin, the plugin's GetLexerCount() returns a value greater than 30, overflowing the fixed containers[30] stack array and corrupting control data to hijack execution. No public exploit code has been identified at time of analysis, and in practice a native plugin already runs code in-process, so this vector adds little over simply shipping malicious plugin logic.

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

Loading a crafted Notepad++ plugin that reports more than 30 external lexers can overflow a 30-element stack array inside PluginsManager::loadPluginFromPath(), corrupting adjacent control data and potentially yielding arbitrary code execution in the Notepad++ process; the flaw affects all releases prior to 8.9.8. The attack is local and requires user interaction (the victim must install and load the malicious native plugin DLL), and because any loaded native plugin already runs in-process with full editor privileges, the incremental risk over simply distributing malicious plugin code is minimal - no public exploit identified at time of analysis, and the issue is not reachable remotely or through opened documents. Vendor-released patch: 8.9.8 (CVSS 8.6 base score; our assessment keeps the same 8.6 but treats scope as Unchanged rather than Changed).

RemediationAI

Upgrade to Notepad++ 8.9.8 or later, available from the v8.9.8 release tag and the official announcement page (https://notepad-plus-plus.org/news/v898-released); this is the only complete fix because the patched code re-assigns the clamped lexer count so NB_MAX_EXTERNAL_LANG is enforced, and no backported fix for earlier 8.x branches is identified in the references (see advisory GHSA-h2wq-6x75-h8q2 for details). Where upgrading is not immediately possible, treat the plugin directory as a privileged location: restrict write permissions on the Notepad++ plugins folder (e.g. %ProgramFiles%\Notepad++\plugins or %APPDATA%\Notepad++\plugins) to administrators only so an attacker cannot drop a DLL that will be loaded at next start - a control that does not help against a user who manually installs a hostile plugin. Installing plugins only from vetted, signed sources and auditing the DLLs already present (reviewing which plugins export GetLexerCount and which were obtained from untrusted packaging channels) removes the prerequisites for this bug, though it provides no defense once a malicious plugin is intentionally loaded, since any native plugin already executes arbitrary code in-process. If plugins are not needed, launching Notepad++ with the -noPlugin command-line switch prevents any plugin DLL from being loaded; the trade-off is that all plugin functionality, including legitimate lexer and tooling extensions, is disabled for that session. Because exploitation requires local access plus user interaction and the underlying trust decision already grants code execution, patch deployment should be prioritized by whether the endpoint population routinely installs third-party plugins rather than by the 8.6 base score alone.

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

Notepad++ supports third-party plugins as native Windows DLLs that expose a plugin interface including GetLexerCount(), which advertises how many external lexer definitions the plugin provides. In PowerEditor/src/MISC/PluginsManager/PluginsManager.cpp, loadPluginFromPath() stores those lexer handles into a fixed-size stack array, containers[NB_MAX_EXTERNAL_LANG], where NB_MAX_EXTERNAL_LANG is 30, and iterates using the GetLexerCount() value returned by the untrusted plugin. The vulnerable code intended to clamp the count with a ternary expression ('numLexers > NB_MAX_EXTERNAL_LANG ? NB_MAX_EXTERNAL_LANG : numLexers') but never assigned the result back to numLexers, so the unclamped plugin-supplied value drove the loop and writes past the array - a classic CWE-121 stack-based buffer overflow (the tag set also references RCE, Buffer Overflow and Stack Overflow). The authoritative fix (commit 70b88f95311d88523cde6be1b1ec938aa48c24bc, with related commit f1e1c71b090d69ca0f0175ab73895da41db67a16) simply assigns the clamped value back to numLexers, restoring the NB_MAX_EXTERNAL_LANG bound. Because the input comes from a plugin DLL the user chose to install, the trust boundary crossed is the plugin-loading interface rather than a network or document-parsing surface.

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 8.6 HIGH
AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
vuln.today AI 7.8 HIGH

Attack surface is a plugin the user must load (AV:L, UI:R, PR:N for the plugin author); corruption stays within the Notepad++ process so S:U, not S:C; full C/I/A on successful ACE.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/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
Changed
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

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

DescriptionCVE.org

Notepad++ is a free and open-source source code editor. Prior to 8.9.8, Notepad++ contains a stack buffer overflow in PluginsManager::loadPluginFromPath in PowerEditor/src/MISC/PluginsManager/PluginsManager.cpp because the plugin-supplied GetLexerCount() result controls a loop that writes to containers[30] without enforcing NB_MAX_EXTERNAL_LANG. A malicious or compromised plugin that reports more than 30 lexers can write beyond the stack array and corrupt control data, which can permit arbitrary code execution in the Notepad++ process context. This issue is fixed in version 8.9.8.

Technical POC Analysis

CWE-121, stack-based buffer overflow in PluginsManager::loadPluginFromPath(), PowerEditor/src/MISC/PluginsManager/PluginsManager.cpp lines 208 to 227 (advisory's line numbers; commit tested 9c87fe99f…

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 prior to 8.9.8 are affected by a high-severity local memory-corruption flaw in plugin loading, where a crafted native plugin with more than 30 external lexers can potentially achieve code execution in the Notepad++ process. The attack requires a user to install and load a malicious plugin, and because any native plugin already runs with full editor privileges, the incremental risk over distributing malicious plugin code is limited; no public exploit identified at time of analysis. Leadership should care because affected users could be social-engineered into installing untrusted plugins, and the vendor-released fix is version 8.9.8.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 88% exploitable
Prevalence
High
one of the most widely used Windows source-code editors, huge desktop install base
Exploit
POC
Public exploit code exists
Data Quality
6 sources
Confidence: High

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
Defer
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact
Medium
Technical Impact
Total

Priority Score

63
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +43
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.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

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