Notepad-plus-plus
Notepad++: Stack Buffer Overflow in expandNppEnvironmentStrs
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.8high · scored by CNA · CWE-121
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
notepad-plus-plus notepad-plus-plus
- < 8.9.7
Fixed in 8.9.7
Mitigation
Upgrade notepad-plus-plus to 8.9.7 or later.
References
- Vendor advisory github.com/notepad-plus-plus/notepad-plus-plus…
- Patch github.com/notepad-plus-plus/notepad-plus-plus…
- Release notes github.com/notepad-plus-plus/notepad-plus-plus…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.