
Cloud Vulnerability DB
An open project to list all known cloud vulnerabilities and Cloud Service Provider security issues
Notepad++ versions 8.5.6 and prior contain a critical heap buffer write overflow vulnerability in the Utf8_16_Read::convert
function (CVE-2023-40031). The vulnerability was discovered in April 2023 and publicly disclosed on August 21, 2023, after remaining unpatched through several version releases. This security flaw affects the text editor's UTF-16 to UTF-8 conversion functionality and has been assigned a CVSS v3.1 score of 7.8 (High) (GitHub Advisory, NVD).
The vulnerability occurs in the Utf816Read::convert function where it allocates a new buffer for UTF16 to UTF8 conversion. The function calculates the new buffer size assuming that for every two UTF16 encoded input bytes it may need three UTF8 bytes. However, when the input length is a malformed odd number of bytes, the calculation becomes incorrect, leading to a buffer overflow condition. When processing a second chunk of bytes with len set to 9, newSize becomes 14, but after consuming the first 8 input bytes, the pointer is shifted by 12 elements in a 14-element array, resulting in an overflow when writing three additional bytes (GitHub Advisory).
The vulnerability has been assessed as potentially leading to arbitrary code execution when a specially crafted file is opened in Notepad++. However, there is some debate about the actual exploitability, with some users suggesting it may be limited due to being an off-by-two bug (Bleeping Computer).
The vulnerability was fixed in Notepad++ version 8.5.7, released in September 2023. Users are strongly advised to update to this version or later to protect against potential exploitation. Prior to the patch, no official workarounds were available (Bleeping Computer).
The security community expressed concern about the delayed response to the vulnerability, as it remained unpatched through several version releases (8.5.3 through 8.5.6) despite being reported in April 2023. The public disclosure of the vulnerability on August 21, 2023, eventually prompted the development team to address the issue after community pressure (Security Online).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
An open project to list all known cloud vulnerabilities and Cloud Service Provider security issues
A comprehensive threat intelligence database of cloud security incidents, actors, tools and techniques
A step-by-step framework for modeling and improving SaaS and PaaS tenant isolation
Get a personalized demo
“Best User Experience I have ever seen, provides full visibility to cloud workloads.”
“Wiz provides a single pane of glass to see what is going on in our cloud environments.”
“We know that if Wiz identifies something as critical, it actually is.”