CVE-2026-86054
published high CVSS 3.1 · 7.8Notepad++: Stack Buffer Overflow in `NppParameters::writeSession` via overlong session path
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| notepad-plus-plus | — | notepad-plus-plus< 8.9.8 | Affected | Not stated | GitHub_M |
Description
Notepad++ is a free and open-source source code editor. Prior to 8.9.8, Notepad++ contains a stack buffer overflow in NppParameters::writeSession in PowerEditor/src/Parameters.cpp because it copies a session path derived from -settingsDir= into backupPathName[MAX_PATH] with unbounded wcscpy and appends SESSION_BACKUP_EXT with unbounded wcscat. A sufficiently long settings directory causes the backup suffix to exceed the fixed stack buffer when Notepad++ saves the session, and the protected release build terminates through its stack canary, causing denial of service. This issue is fixed in version 8.9.8.
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.8 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-121 CWE-121: Stack-based Buffer Overflow
References
4- https://github.com/notepad-plus-plus/notepad-plus-plus/commit/046af3f626be7715886412313fc18f58b30dfcaf
- https://github.com/notepad-plus-plus/notepad-plus-plus/releases/tag/v8.9.8
- https://github.com/notepad-plus-plus/notepad-plus-plus/security/advisories/GHSA-pxgg-96p2-c3hx
- https://notepad-plus-plus.org/news/v898-released
Provider assertions
2GitHub_M · cna
Notepad++: Stack Buffer Overflow in `NppParameters::writeSession` via overlong session path
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- a5ca01546b802d4534b2656b756b63b4edf0bdaf0d935e0a9c4e9f8608a6069c
- Ingested
- 30 Sep 2026, 15:34:24 UTC
- Source record
- Official CVE record