Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessTrick user into installing malicious plugin
-
DeliveryNotepad++ loads plugin and calls GetLexerCount()
-
ExploitPlugin reports >30 lexers
-
ExecutionLoop writes past containers[30] stack array
-
ImpactCorrupt 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
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.
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 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.
Articles & Coverage 1
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
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.
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
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.
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-84570
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB