Notepad++ Stack-Based Buffer Overflow Vulnerability in File Drop Handler Component

Vulnerability

A stack-based buffer overflow vulnerability has been identified in Notepad++ version 8.9.3. The issue arises in the file drop handler component when a user drags and drops a directory path that is exactly 259 characters long, without a trailing backslash. The application improperly appends a backslash and null terminator, leading to a stack buffer overflow and causing the application to crash with a 'STATUS_STACK_BUFFER_OVERRUN' error.

Impact

Exploitation of this vulnerability causes a reliable application crash and corrupts stack memory adjacent to the buffer, potentially allowing for further exploitation despite the presence of a security cookie that complicates such attempts.

Reproduction

To reproduce this vulnerability, drop a directory path of exactly 259 characters (excluding the trailing backslash) onto an open Notepad++ 8.9.3 window. This can be done by creating a directory with a long path, ensuring it meets the length requirement, and then dragging it into the Notepad++ application.

Remediation

Users can update to the latest version of Notepad++ where this vulnerability has been fixed.

Added: Apr 10, 2026, 9:34 AM
Updated: Apr 10, 2026, 9:34 AM

Vulnerability Rating

Custom Algorithm
spread
7.8
impact
1.3
exploitability
5.3
remediation
7.7
relevance
5.6
threat
4.8
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.