# CVE-2023-40166: Notepad++ heap buffer read overflow in FileManager::detectLanguageFromTextBegining

- Severity: Medium 5.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.41%, higher than 37% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-08-25T20:20:20.390Z
- Modified: 2026-06-17T06:16:30.650Z
- Weaknesses: CWE-120, CWE-122
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

Notepad++ is a free and open-source source code editor. Versions 8.5.6 and prior are vulnerable to heap buffer read overflow in `FileManager::detectLanguageFromTextBegining `. The exploitability of this issue is not clear. Potentially, it may be used to leak internal memory allocation information. As of time of publication, no known patches are available in existing versions of Notepad++.

(As written by CVE List.)

## Affected

- notepad-plus-plus notepad-plus-plus: <= 8.5.6
- notepad-plus-plus notepad++: up to 8.5.6

## Every score

- GitHub_M: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`

## References

- <https://securitylab.github.com/advisories/GHSL-2023-092_Notepad__/> (exploit, third-party-advisory)

## Sources

- CVE List: [CVE-2023-40166](https://www.cve.org/CVERecord?id=CVE-2023-40166), CVE Terms of Use, modified 2024-10-02
- NVD: [CVE-2023-40166](https://nvd.nist.gov/vuln/detail/CVE-2023-40166), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-40166 · Whole record: https://cve.day/CVE-2023-40166.json · Rebuilt by cve.day 2026-11-25T22:58:27.368Z
