Skip to content

HackerOne

Notepad++

Every publicly disclosed report for Notepad++ and what kind of bugs they were.

disclosed reports
8
most reported class
Memory corruption
bug classes found
3
first disclosure
2019
Find Notepad++ on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Notepad++ chose to make public.

Memory corruption

Stack overflow affecting "ext" field on stylers.xml configuration file

The isInList function in Notepad++ copies the 'ext' field from stylers.xml into a fixed 64-character buffer without checking its length. A local attacker who can edit that configuration file can cause a stack buffer overflow and crash the application when it is reopened.

Notepad++

Medium
Memory corruption

Stack overflow in XML Parsing

A stack buffer overflow exists in Notepad++'s XML parsing code because a fixed-size character buffer is filled without checking its boundaries. An attacker could craft a malicious XML file that crashes the application when opened.

Notepad++

High
RCE

No SearchEngine sanatizing can lead to command injection

The custom search engine setting in Notepad++ was passed directly to ShellExecute without validation, so a value that is a command rather than a URL would be run as a command. An attacker who can set that field could execute arbitrary commands on the machine.

Notepad++

Medium
RCE

Insufficient sanitizing can lead to arbitrary commands execution

Notepad++ fails to sanitise environment variable expansion in folder names when opening a command prompt, allowing an attacker to inject arbitrary commands. A crafted folder name containing a quote character can break out of the intended command and execute arbitrary code.

Notepad++

Medium
RCE

Command injection by setting a custom search engine

The 'Search on Internet' feature in Notepad++ passes the user-configured custom search engine string directly to ShellExecute without validation. An attacker who can set this string (via GUI or config file) can execute arbitrary commands when the user selects the context menu option.

Notepad++

Medium
Memory corruption

A stack buffer overflow in BabyGrid.cpp can lead to program crashes via a malicious localization file

A stack buffer overflow in Notepad++'s BabyGrid.cpp occurs when a malicious nativeLang.xml file contains an overly long name attribute for certain ShortcutMapper tags, due to unsafe lstrcat and lstrcpy calls without bounds checks. An attacker could cause the program to crash when the user opens the Shortcut Mapper, potentially leading to loss of unsaved data.

Notepad++

Low
Memory corruption

Security check failure or stack buffer overrun (crash)

Notepad++ crashes with a stack buffer overrun when long strings are pasted into the comment line style fields in the 'Define language' dialog, causing a denial of service.

Notepad++

Low
DoS

Crash

Entering a long string of repeated characters into the 'Left part' field of the Header block in Print preferences crashes Notepad++.

Notepad++

Low