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.
Published: 2026-09-22
Score: 8.6 High
EPSS: < 1% Very Low
KEV: No
Impact: Local Code Execution
Action: Apply Patching
AI Analysis

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.

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

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

History

Tue, 22 Sep 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 22 Sep 2026 19:15:00 +0000

Type Values Removed Values Added
First Time appeared Notepad-plus-plus
Notepad-plus-plus notepad++
Vendors & Products Notepad-plus-plus
Notepad-plus-plus notepad++

Tue, 22 Sep 2026 17:30:00 +0000

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'}


Subscriptions

Notepad-plus-plus Notepad++
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-22T18:27:51.292Z

Reserved: 2026-09-03T16:37:49.261Z

Link: CVE-2026-85279

cve-icon Vulnrichment

Updated: 2026-09-22T18:27:17.487Z

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-09-22T18:17:23.213

Modified: 2026-09-23T18:28:25.093

Link: CVE-2026-85279

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-22T19:30:14Z

Weaknesses
  • CWE-121

    Stack-based Buffer Overflow