Skip to main content
← All vulnerabilities
CVE-2026-86054GHSA-PXGG-96P2-C3HX

Notepad++: Stack Buffer Overflow in `NppParameters::writeSession` via overlong session path

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 8.9.8
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • notepad-plus-plus notepad-plus-plus

    fixed in 8.9.8

References 4

GitHub · notepad-plus-plus/notepad-plus-plus

notepad-plus-plus.org