CVE-2026-54758
JSON

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 packageVersionsReported by
notepad-plus-plus notepad-plus-plus< 8.9.7CVE List

Classification

CWE-121CWE-787

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-54758 changed 2026-08-17CVE Terms of Use
NVDCVE-2026-54758 changed 2026-09-09Public domain