CVE-2026-54758
7.8high
Notepad++: Stack Buffer Overflow in expandNppEnvironmentStrs
- Severity
- 7.8high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.19% (higher than 9% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
Notepad++ is a free and open-source source code editor. Prior to 8.9.7, the expandNppEnvironmentStrs function in PowerEditor/src/WinControls/StaticDialog/RunDlg/RunDlg.cpp copies a Notepad++ variable name between $( and ) into the fixed-size wchar_t str[MAX_PATH] stack buffer without bounding the m loop index, allowing a name of 260 or more characters to corrupt adjacent stack data, terminate the process through __report_gsfailure, and potentially execute code. This issue is fixed in version 8.9.7.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| notepad-plus-plus notepad-plus-plus | < 8.9.7 | CVE List |
Classification
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-54758 changed 2026-08-17 | CVE Terms of Use |
| NVD | CVE-2026-54758 changed 2026-09-09 | Public domain |