{"id":"CVE-2026-54758","aliases":["CVE-2026-54758"],"related":[],"kind":"vulnerability","state":"published","title":"Notepad++: Stack Buffer Overflow in expandNppEnvironmentStrs","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-08-17T20:05:51.923Z","modified":"2026-09-09T21:11:25.743Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-121","CWE-787"],"affected":[{"ranges":[{"version":"< 8.9.7","status":"affected"}],"vendor":"notepad-plus-plus","product":"notepad-plus-plus","source":"cvelist"}],"references":[{"url":"https://github.com/notepad-plus-plus/notepad-plus-plus/security/advisories/GHSA-gv94-327x-2gc5","tags":["x-refsource-confirm"],"sources":["cvelist","nvd"]},{"url":"https://github.com/notepad-plus-plus/notepad-plus-plus/commit/0a9527e9f7140a2323e25d14e362b46ee0efc3db","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/notepad-plus-plus/notepad-plus-plus/releases/tag/v8.9.7","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-08-17T21:59:14.088Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-54758","url":"https://www.cve.org/CVERecord?id=CVE-2026-54758","licence":"CVE Terms of Use","modified":"2026-08-17T22:01:11.798Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-54758","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-54758","licence":"Public domain","modified":"2026-09-09T21:11:25.743Z"}],"updatedAt":"2026-11-25T22:59:33.381Z","epss":{"score":0.00194,"percentile":0.09497,"date":"2026-12-01T12:00:22.000Z"}}