CVE-2026-85279

Notepad++: Stack Buffer Overflow in Plugin Lexer Loading via Unchecked GetLexerCount() Return Value

Published Sep 22, 2026 CVSS 3.1 · 8.6 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The vulnerability is a stack buffer overflow in PluginsManager::loadPluginFromPath. The plugin’s GetLexerCount() return value is used as a loop counter to write to an array of 30 containers without checking against the maximum allowed lexers. If a plugin reports more than 30 lexers, the loop writes beyond the stack array and corrupts control data, allowing the attacker to execute arbitrary code in the Notepad++ process context. This flaw maps to CWE-121 and permits local code execution. The issue was resolved in version 8.9.8 of Notepad++.

Affected Systems

Every installation of Notepad++ before release 8.9.8 is affected. The product is the desktop editor Notepad++ released by its open‑source community. Users running earlier builds without the fix are vulnerable whenever a plugin providing an inflated lexer count is loaded.

Risk and Exploitability

The CVSS score of 8.6 indicates high severity. No EPSS score is available, and the vulnerability is not listed in the CISA KEV catalog. Attack likely requires the presence of a malicious or compromised plugin; once such a plugin is loaded, the stack overflow can be triggered. An attacker with local knowledge of the target machine could create or install a plugin that reports an excessive lexer count to exploit the flaw. Because the flaw exists in code that is normally executed with the same privileges as the user, the attacker can gain arbitrary code execution without additional escalations.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Install Notepad++ version 8.9.8 or later, which contains the fix that bounds the lexer count and prevents the overflow.
  • Remove or replace any third‑party plugins that may provide an inflated lexer count before upgrading, to avoid accidental exploitation during the transition period.
  • Disable all third‑party plugins until the new version is installed to prevent accidental exploitation.

Generated by OpenCVE AI on September 22, 2026 at 19:07 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Notepad-plus-plus
Notepad-plus-plus notepad++
Vendors & Products Notepad-plus-plus
Notepad-plus-plus notepad++
Type Values Removed Values Added
Description 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.
Title Notepad++: Stack Buffer Overflow in Plugin Lexer Loading via Unchecked GetLexerCount() Return Value
Weaknesses CWE-121
References
Metrics cvssV3_1

{'score': 8.6, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H'}

Weaknesses
  • CWE-121

    Stack-based Buffer Overflow

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 22, 2026, 6:27 PM
Reserved
Sep 3, 2026, 4:37 PM
Status
Awaiting Analysis
Published
Sep 22, 2026, 6:17 PM
Modified
Sep 23, 2026, 6:28 PM