# CVE-2026-85279: Notepad++: Stack Buffer Overflow in Plugin Lexer Loading via Unchecked GetLexerCount() Return Value

- Severity: High 8.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-22T17:08:42.474Z
- Modified: 2026-09-23T18:28:25.093Z
- Weaknesses: CWE-121
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- notepad-plus-plus notepad-plus-plus: < 8.9.8

## References

- <https://github.com/notepad-plus-plus/notepad-plus-plus/security/advisories/GHSA-h2wq-6x75-h8q2> (exploit)
- <https://github.com/notepad-plus-plus/notepad-plus-plus/commit/70b88f95311d88523cde6be1b1ec938aa48c24bc>
- <https://github.com/notepad-plus-plus/notepad-plus-plus/commit/f1e1c71b090d69ca0f0175ab73895da41db67a16>
- <https://github.com/notepad-plus-plus/notepad-plus-plus/releases/tag/v8.9.8>
- <https://notepad-plus-plus.org/news/v898-released>

## Sources

- CVE List: [CVE-2026-85279](https://www.cve.org/CVERecord?id=CVE-2026-85279), CVE Terms of Use, modified 2026-09-22
- NVD: [CVE-2026-85279](https://nvd.nist.gov/vuln/detail/CVE-2026-85279), Public domain, modified 2026-09-23

---

Page: https://cve.day/CVE-2026-85279 · Whole record: https://cve.day/CVE-2026-85279.json · Rebuilt by cve.day 2026-11-25T22:59:40.500Z
