# CVE-2026-86054: Notepad++: Stack Buffer Overflow in `NppParameters::writeSession` via overlong session path

- Severity: High 7.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-22T17:12:38.351Z
- Modified: 2026-09-28T18:17:25.420Z
- Weaknesses: CWE-121
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: 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.

(As written by CVE List.)

## Affected

- notepad-plus-plus notepad-plus-plus: < 8.9.8

## References

- <https://github.com/notepad-plus-plus/notepad-plus-plus/security/advisories/GHSA-pxgg-96p2-c3hx> (exploit)
- <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://notepad-plus-plus.org/news/v898-released>

## Sources

- CVE List: [CVE-2026-86054](https://www.cve.org/CVERecord?id=CVE-2026-86054), CVE Terms of Use, modified 2026-09-28
- NVD: [CVE-2026-86054](https://nvd.nist.gov/vuln/detail/CVE-2026-86054), Public domain, modified 2026-09-28

---

Page: https://cve.day/CVE-2026-86054 · Whole record: https://cve.day/CVE-2026-86054.json · Rebuilt by cve.day 2026-11-25T22:59:40.501Z
