CVE-2023-40031
CVE-2023-40031 is a high-severity vulnerability in Notepad-plus-plus Notepad++ with a CVSS 3.x base score of 7.8. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-120.
Key facts
- Severity: High (CVSS 3.x base score 7.8)
- EPSS exploit prediction: 0% (39th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-120
- Affected product: Notepad-plus-plus Notepad++
- Published:
- Last modified:
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++.
Frequently asked questions
- What is CVE-2023-40031?
- 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++.
- How severe is CVE-2023-40031?
- CVE-2023-40031 has a CVSS 3.x base score of 7.8, rated high severity. It is exploitable over local access with low attack complexity, requires no privileges and user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2023-40031 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (39th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2023-40031?
- CVE-2023-40031 affects Notepad-plus-plus Notepad++. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2023-40031?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- When was CVE-2023-40031 published?
- CVE-2023-40031 was published on 2023-08-25 and last updated on 2026-06-17.
References
Affected products (1)
- cpe:2.3:a:notepad-plus-plus:notepad\+\+:*:*:*:*:*:*:*:*
More vulnerabilities in Notepad-plus-plus Notepad++
- CVE-2026-52884 — High (CVSS 7.8): Notepad++ is a free and open-source source code editor. In v8.9.6.1, isInTrustedDirectory() does NOT canonicalize the…
- CVE-2026-48800 — High (CVSS 7.8): Notepad++ is a free and open-source source code editor. Prior to 8.9.6.1, the <Command> tag text content inside…
- CVE-2026-48778 — High (CVSS 7.8): Notepad++ is a free and open-source source code editor. Prior to 8.9.6.1, the <GUIConfig name="commandLineInterpreter">…
- CVE-2026-46710 — High (CVSS 7.8): Notepad++ is a free and open-source source code editor. From 8.9.4 until 8.9.6, Notepad++ contains a local privilege…
- CVE-2023-47452 — High (CVSS 7.8): An Untrusted search path vulnerability in notepad++ 6.5 allows local users to gain escalated privileges through the…
- CVE-2022-32168 — High (CVSS 7.8): Notepad++ versions 8.4.1 and before are vulnerable to DLL hijacking where an attacker can replace the vulnerable dll…
All CVEs affecting Notepad-plus-plus Notepad++ →
Other CWE-120 (Classic Buffer Overflow) vulnerabilities
- CVE-2025-48611 — Critical (CVSS 10.0): In DeviceId of DeviceId.java, there is a possible desync in persistence due to a missing bounds check. This could lead…
- CVE-2026-24823 — Critical (CVSS 10.0): Out-of-bounds Write, Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') vulnerability in FASTSHIFT…
- CVE-2026-24810 — Critical (CVSS 10.0): Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') vulnerability in rethinkdb (src/cjson modules).…
- CVE-2026-24800 — Critical (CVSS 10.0): Out-of-bounds Write, Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') vulnerability in tildearrow…
- CVE-2025-9962 — Critical (CVSS 10.0): A buffer overflow vulnerability in Novakon P series allows attackers to gain root permission without prior…
- CVE-2010-10016 — Critical (CVSS 10.0): BS.Player version 2.57 (build 1051) contains a vulnerability in its playlist import functionality. When processing .m3u…
Browse all CWE-120 (Classic Buffer Overflow) vulnerabilities →