SB2023090838 - Multiple vulnerabilities in Notepad++
Published: September 8, 2023 Updated: July 14, 2026
Breakdown by Severity
- Low
- Medium
- High
- Critical
Description
This security bulletin contains information about 8 vulnerabilities.
1) Heap-based buffer overflow (CVE-ID: CVE-2023-40031)
CWE-ID: CWE-122 - Heap-based Buffer Overflow
CVSSv4: 8.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error within the Utf8_16_Read::convert() function in UniConversion.cxx. A remote attacker can trick the victim to open a specially crafted file, trigger a heap-based buffer overflow and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
2) Out-of-bounds read (CVE-ID: CVE-2023-40036)
CWE-ID: CWE-125 - Out-of-bounds read
CVSSv4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to gain access to potentially sensitive information.
The vulnerability exists due to a boundary condition within the CharDistributionAnalysis::HandleOneChar() function. A remote attacker can create a specially crafted file, trick the victim into opening it, trigger an out-of-bounds read error and read contents of memory on the system.
3) Out-of-bounds read (CVE-ID: CVE-2023-40164)
CWE-ID: CWE-125 - Out-of-bounds read
CVSSv4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to gain access to potentially sensitive information.
The vulnerability exists due to a boundary condition within the nsCodingStateMachine::NextStater() function. A remote attacker can create a specially crafted file, trick the victim into opening it, trigger an out-of-bounds read error and read contents of memory on the system.
4) Out-of-bounds read (CVE-ID: CVE-2023-40166)
CWE-ID: CWE-125 - Out-of-bounds read
CVSSv4: 5.1 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to gain access to potentially sensitive information.
The vulnerability exists due to a boundary condition within the FileManager::detectLanguageFromTextBegining() function. A remote attacker can create a specially crafted file, trick the victim into opening it, trigger an out-of-bounds read error and read contents of memory on the system.
5) Buffer over-read (CVE-ID: N/A)
CWE-ID: CWE-126 - Buffer over-read
CVSSv4: 4.6 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to disclose sensitive information.
The vulnerability exists due to out-of-bounds read in CharDistributionAnalysis::HandleOneChar when opening a crafted file. A remote attacker can trick the victim into opening a crafted file to disclose sensitive information.
User interaction is required to open a crafted file.
6) Buffer over-read (CVE-ID: N/A)
CWE-ID: CWE-126 - Buffer over-read
CVSSv4: 4.6 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to disclose sensitive information.
The vulnerability exists due to an out-of-bounds read in nsCodingStateMachine::NextState when parsing a crafted file during file open. A remote attacker can trick the victim into opening a crafted file to disclose sensitive information.
User interaction is required to open a crafted file.
7) Heap-based buffer overflow (CVE-ID: N/A)
CWE-ID: CWE-122 - Heap-based Buffer Overflow
CVSSv4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to execute arbitrary code.
The vulnerability exists due to heap-based buffer overflow in Utf8_16_Read::convert when opening a crafted file. A remote attacker can trick the victim into opening a crafted file to execute arbitrary code.
User interaction is required to open a crafted file.
8) Buffer over-read (CVE-ID: N/A)
CWE-ID: CWE-126 - Buffer over-read
CVSSv4: 4.6 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N]
The vulnerability allows a remote attacker to disclose sensitive information.
The vulnerability exists due to out-of-bounds read in FileManager::detectLanguageFromTextBegining when parsing a crafted file. A remote attacker can trick the victim into opening a crafted file to disclose sensitive information.
User interaction is required to open a crafted file.
Remediation
Install update from vendor's website.
References
- https://github.com/notepad-plus-plus/notepad-plus-plus/releases/tag/v8.5.7
- https://securitylab.github.com/advisories/GHSL-2023-092_Notepad__/
- https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14073
- https://notepad-plus-plus.org/news/v857-released-fix-security-issues/
- https://github.com/notepad-plus-plus/notepad-plus-plus/security/advisories/GHSA-jg7c-f532-25h8
- https://github.com/notepad-plus-plus/notepad-plus-plus/security/advisories/GHSA-67mm-g35x-jv47
- https://github.com/notepad-plus-plus/notepad-plus-plus/security/advisories/GHSA-cfcv-789h-3pg3
- https://github.com/notepad-plus-plus/notepad-plus-plus/security/advisories/GHSA-v2h9-jfmf-5cgq