# CVE-2026-52885: Notepad++ TOCTOU: HMAC Checks Disk, Executes from Memory

- Severity: High 7.5 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:L/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA: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.13%, higher than 2% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-26T20:19:04.456Z
- Modified: 2026-06-29T21:22:34.847Z
- Weaknesses: CWE-367
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

Notepad++ is a free and open-source source code editor. Prior to 8.9.6.4, NppCommands.cpp checks the HMAC of the on-disk shortcuts.xml at the moment a user command fires (Time-of-Check). However, the command payload is taken from the in-memory _userCommands vector, which is populated at application startup and never re-synchronized with the on-disk file (Time-of-Use). Swapping shortcuts.xml between startup and command execution causes the HMAC check to validate a clean file while a malicious command runs. An attacker with write access to shortcuts.xml places a malicious version on disk before launch, then immediately restores the legitimate file. The HMAC check at execution time validates the restored legitimate file (check passes), while the malicious payload executes from memory. This vulnerability is fixed in 8.9.6.4.

(As written by CVE List.)

## Affected

- notepad-plus-plus notepad-plus-plus: < 8.9.6.4
- notepad-plus-plus notepad++: before 8.9.6.4

## Every score

- GitHub_M: CVSS:4.0 7.5 High `CVSS:4.0/AV:L/AC:H/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- NVD: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H`

## References

- <https://github.com/notepad-plus-plus/notepad-plus-plus/security/advisories/GHSA-qm4c-qg8p-qfcr> (exploit, patch, vendor-advisory)
- <https://github.com/notepad-plus-plus/notepad-plus-plus/commit/4f7563c7c7f8ffa0d795ec86a7777067c7d644b5> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2026-52885 · Whole record: https://cve.day/CVE-2026-52885.json · Rebuilt by cve.day 2026-11-25T22:59:26.547Z
