PoC Monitor
← All CVEs
CVE-2026-52885published 26 Jun 2026 20:19 UTCData: JSON · API

Notepad-plus-plus

Notepad++ TOCTOU: HMAC Checks Disk, Executes from Memory

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.

First public PoC None yetno public PoC found
Public PoCs00 on GitHub
CVSS7.5high · scored by CNA · CWE-367
CISA KEV Not listednot known exploited

Affected versions and mitigation

From the CVE record and the vendor's references.

Affected

notepad-plus-plus notepad-plus-plus
  • < 8.9.6.4

Fixed in 8.9.6.4

Mitigation

Upgrade notepad-plus-plus to 8.9.6.4 or later.

References

Timeline

Days relative to CVE publication
-2t=0+2+4+6+8CVE published26 Jun 2026 · t = 0

No public PoC found yet; not in CISA KEV.

PoC repositories

Found on GitHub.

1 suspicious or fake

Suspicious or fake 1
RepositoryCreatedStarsAssessment
v3s9er/CVE-2026-52885 9 Jun 2026 −17 d 1 Fake
Flags · score 15
  • owner account created less than 30 days before the repo

Below the suspicion threshold (50); does not change the assessment.

Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.