# CVE-2026-54758: Notepad++: Stack Buffer Overflow in expandNppEnvironmentStrs

- Severity: High 7.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/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.19%, higher than 9% of CVEs (2026-12-01)
- Published: 2026-08-17T20:05:51.923Z
- Modified: 2026-09-09T21:11:25.743Z
- Weaknesses: CWE-121, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- 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.

(As written by CVE List.)

## Affected

- notepad-plus-plus notepad-plus-plus: < 8.9.7

## References

- <https://github.com/notepad-plus-plus/notepad-plus-plus/security/advisories/GHSA-gv94-327x-2gc5>
- <https://github.com/notepad-plus-plus/notepad-plus-plus/commit/0a9527e9f7140a2323e25d14e362b46ee0efc3db>
- <https://github.com/notepad-plus-plus/notepad-plus-plus/releases/tag/v8.9.7>

## Sources

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

---

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