CVE-2026-54758
published high CVSS 3.1 · 7.8Notepad++: Stack Buffer Overflow in expandNppEnvironmentStrs
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| notepad-plus-plus | — | notepad-plus-plus< 8.9.7 | Affected | Not stated | 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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| notepad-plus-plus | notepad-plus-plus | < 8.9.7 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-121 CWE-121: Stack-based Buffer Overflow
- CWE-787 CWE-787: Out-of-bounds Write
References
3Provider assertions
2GitHub_M · cna
Notepad++: Stack Buffer Overflow in expandNppEnvironmentStrs
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 216f21bd60079f67494cf1568c797d5b400add30024aef50d7f72f4e2077d079
- Ingested
- 23 Sep 2026, 09:20:39 UTC
- Source record
- Official CVE record