{"id":"CVE-2026-86054","published":"2026-09-22T17:12:38Z","modified":"2026-09-28T17:36:02Z","title":"Notepad++: Stack Buffer Overflow in `NppParameters::writeSession` via overlong session path","vendor":"notepad-plus-plus","product":"notepad-plus-plus","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00202,"percentile":0.05723,"provenance":"source"},"cwes":[{"id":"CWE-121","name":"Stack-based Buffer Overflow"}],"references":[{"url":"https://github.com/notepad-plus-plus/notepad-plus-plus/security/advisories/GHSA-pxgg-96p2-c3hx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/notepad-plus-plus/notepad-plus-plus/commit/046af3f626be7715886412313fc18f58b30dfcaf","tags":["x_refsource_MISC"]},{"url":"https://github.com/notepad-plus-plus/notepad-plus-plus/releases/tag/v8.9.8","tags":["x_refsource_MISC"]},{"url":"https://notepad-plus-plus.org/news/v898-released","tags":["x_refsource_MISC"]}],"priority":{"score":6.6,"factors":[{"name":"EPSS percentile","points":1.14},{"name":"CVSS severity","points":5.46}]},"vendorSlug":"notepad-plus-plus","affectedVersions":[{"vendor":"notepad-plus-plus","product":"notepad-plus-plus","versions":["< 8.9.8"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2026-09-28T17:35:55.930197Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-84572","exploited":false,"provenance":"source"}}