Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

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

AI Predicted 7.8 Difficulty: Moderate EPSS 0.13% · P3

Possible ATT&CK Techniques 1AI

T1055.001 · Dynamic-link Library Injection

Affected Version Matrix 1

VendorProductVersion RangeStatus
notepad-plus-plusnotepad-plus-plus< 8.9.6.4affected
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2026-52885

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Notepad++ TOCTOU: HMAC Checks Disk, Executes from Memory
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
检查时间与使用时间(TOCTOU)的竞争条件
Source: CVE Program / CVE List V5
Vulnerability Title
notepad-plus-plus 竞争条件问题漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
notepad-plus-plus notepad-plus-plus是notepad-plus-plus团队的一款文本编辑软件。 notepad-plus-plus 8.9.6.4之前版本存在竞争条件问题漏洞,该漏洞源于NppCommands.cpp中的检查时间与使用时间(TOCTOU)问题,可能导致具有shortcuts.xml写入权限的攻击者在启动前放置恶意版本并在加载后恢复合法文件,从而导致恶意载荷从内存中执行。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
notepad-plus-plusnotepad-plus-plus < 8.9.6.4 -

II. Public POCs for CVE-2026-52885

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-52885

登录查看更多情报信息。

Patches & Fixes for CVE-2026-52885 (1)

Vendor Advisories for CVE-2026-52885 (1)

Same Patch Batch · notepad-plus-plus · 2026-06-26 · 6 CVEs total

CVE-2026-528847.8 HIGHNotepad++: CVE-2026-48800 Bypass
CVE-2026-487787.8 HIGHNotepad++: Arbitrary Code Execution via config.xml commandLineInterpreter
CVE-2026-488007.8 HIGHNotepad++: Arbitrary Code Execution via shortcuts.xml UserCommand Injection
CVE-2026-487705.0 MEDIUMNotepad++ WM_COPYDATA COPYDATA_FULL_CMDLINE local DoS crash
CVE-2026-46710Notepad++: Privilege Escalation in the Installer via Uncontrolled Executable Search Path

IV. Related Vulnerabilities

V. Comments for CVE-2026-52885

No comments yet


Leave a comment