← Vulnerability feed

Vulnerability record · CVE-2023-40031 · published 25 August 2023

CVE-2023-40031: Notepad-plus-plus notepad\+\+ classic buffer overflow vulnerability

Notepad Plus Plus · Notepad\+\+

Notepad++ is a free and open-source source code editor. Versions 8.5.6 and prior are vulnerable to heap buffer write overflow in `Utf8_16_Read::convert`. This issue may lead to arbitrary code execution. As of time of publication, no known patches are available in existing versions of Notepad++.

7.8 CVSS 3.1 High EPSS 0.52% · top 58.3% CWE-120 · Classic buffer overflowCWE-122 · Heap-based buffer overflow
7.8CVSS 3.1 base score
0.52%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
2References, 2 tagged exploit
17 Jun 2026Last modified by NVD

Description

Notepad++ is a free and open-source source code editor. Versions 8.5.6 and prior are vulnerable to heap buffer write overflow in `Utf8_16_Read::convert`. This issue may lead to arbitrary code execution. As of time of publication, no known patches are available in existing versions of Notepad++.

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2023-40031 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

7.7CVE-2025-15556Notepad++ WinGUp updater lacks update integrity verificationNotepad++ versions prior to 8.8.9 use the WinGUp updater, which downloads update metadata and installers without cryptographic verification. An attac…KEVEPSS 1.7%analysed7.8CVE-2026-48778Notepad-plus-plus notepad\+\+ os command injection vulnerabilityNotepad++ is a free and open-source source code editor. Prior to 8.9.6.1, the <GUIConfig name="commandLineInterpreter"> tag in config.xml is read by …EPSS 0.62%7.8CVE-2026-48800Notepad-plus-plus notepad\+\+ os command injection vulnerabilityNotepad++ is a free and open-source source code editor. Prior to 8.9.6.1, the <Command> tag text content inside <UserDefinedCommands> in shortcuts.xm…EPSS 0.21%7.8CVE-2026-52884Notepad-plus-plus notepad\+\+ vulnerabilityNotepad++ is a free and open-source source code editor. In v8.9.6.1, isInTrustedDirectory() does NOT canonicalize the path before checking. It uses a…EPSS 0.21%7.8CVE-2026-5525Notepad-plus-plus notepad\+\+ stack-based buffer overflow vulnerabilityA stack-based buffer overflow vulnerability exists in Notepad++ version 8.9.3 in the file drop handler component. When a user drags and drops a direc…EPSS 0.18%7.8CVE-2023-47452Notepad-plus-plus notepad\+\+ uncontrolled search path element vulnerabilityAn Untrusted search path vulnerability in notepad++ 6.5 allows local users to gain escalated privileges through the msimg32.dll file in the current w…EPSS 0.53%7.8CVE-2023-6401Notepad-plus-plus notepad\+\+ uncontrolled search path element vulnerabilityA vulnerability classified as problematic was found in NotePad++ up to 8.1. Affected by this vulnerability is an unknown functionality of the file db…EPSS 0.33%7.8CVE-2022-32168Notepad-plus-plus notepad\+\+ uncontrolled search path element vulnerabilityNotepad++ versions 8.4.1 and before are vulnerable to DLL hijacking where an attacker can replace the vulnerable dll (UxTheme.dll) with his own dll a…EPSS 0.75%

Source: NIST National Vulnerability Database (record CVE-2023-40031), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.