CVE-2026-38972: Notepad3 DLL Search-Order Hijacking Vulnerability
Notepad3 versions up to 6.25.822.1 contain a DLL search-order hijacking flaw that allows a local attacker to inject malicious code. When a user opens the About dialog, the application attempts to load a library file (MSFTEDIT.DLL) by name alone, without specifying a full path. An attacker who can write files to the application's directory or to other locations Windows searches for DLLs can plant a malicious version and achieve arbitrary code execution under the user's privileges. This is a classic privilege-escalation and code-execution vector that requires local file-system access but no special user privileges to exploit.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 7.8 HIGH · CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- Weaknesses (CWE)
- CWE-427
- Affected products
- 1 configuration(s)
- Published / Modified
- 2026-07-02 / 2026-07-08
NVD description (verbatim)
Notepad3 through 6.25.822.1 contains a DLL search-order hijacking vulnerability in the About-dialog code path in src/Notepad3.c. The application calls LoadLibrary(L"MSFTEDIT.DLL") with a bare DLL name, which allows a local attacker to place a malicious MSFTEDIT.DLL in the application directory or another preferred DLL search location and achieve arbitrary code execution in the context of the user when the About dialog is opened.
4 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
The vulnerability exists in Notepad3's About-dialog code path (src/Notepad3.c), where a call to LoadLibrary(L"MSFTEDIT.DLL") uses an unqualified DLL name rather than an absolute path. This unsafe pattern invokes the standard Windows DLL search order, which includes the application directory before system directories in many contexts. CWE-427 (Uncontrolled Search Path Element) describes this class of flaw. An attacker with local file-system write access can exploit this by dropping a crafted MSFTEDIT.DLL into a preferred search location (e.g., the application's install directory or the user's current working directory). Upon opening the About dialog, Notepad3 will load and execute the attacker-controlled DLL in the application's process context, gaining the same privileges as the user running Notepad3.
Business impact
Users of Notepad3 who receive or download files from untrusted sources face code-execution risk if they interact with those files in a directory where an attacker has planted a malicious DLL. For enterprise environments, this poses a local privilege-escalation and lateral-movement vector if an attacker gains initial file-system write access on a shared system or removable media. Notepad3 is commonly used for quick text editing and administrative tasks, increasing exposure in high-value workflows. Compromised instances could enable credential theft, malware persistence, or data exfiltration under the victim's account privileges.
Affected systems
Notepad3 versions through 6.25.822.1 are affected. Rizone Software maintains Notepad3 as a lightweight Notepad replacement for Windows. All deployment scenarios—personal use, organizational deployments, portable installations—are vulnerable if users interact with the About dialog. The flaw is present in the application's core executable, so vulnerability scope spans all Windows platforms supported by the affected Notepad3 versions (typically Windows 7 and later).
Exploitability
Exploitability is straightforward for attackers with local file-system access. The attack requires user interaction (opening the About dialog), but this is a common operation—many users explore application menus or check version information routinely. No special privileges, network access, or advanced techniques are needed; a simple DLL replacement suffices. The barrier to exploitation is low, though the attack surface is limited to scenarios where an attacker can write files to a location Notepad3 searches during DLL loading. This makes the vulnerability particularly concerning in shared-system environments, removable-media scenarios, or situations where users download and extract files into application directories.
Remediation
Update Notepad3 to a version released after 6.25.822.1 that addresses DLL loading. Verify the fixed version against the Rizone Software advisory or release notes to confirm the DLL search-order hijacking has been patched. The fix typically involves using the full path or a safe API call (such as LoadLibraryEx with LOAD_LIBRARY_SEARCH_SYSTEM32) to load system libraries. Users should also practice defensive file handling: avoid extracting or downloading untrusted archives into application directories, and review directory permissions to restrict who can create or modify files in application folders.
Patch guidance
Check Rizone Software's official website or GitHub repository for Notepad3 updates released after July 2, 2026. Deployment teams should test the patched version in a non-production environment before rolling out organization-wide. For portable or non-installer deployments, ensure the updated executable is deployed to all affected systems. Consider automating updates through configuration management if Notepad3 is widely deployed. Until patches are available and deployed, restrict file-creation permissions in Notepad3 directories and educate users to avoid extracting untrusted archives into application folders.
Detection guidance
Monitor file-system activity in Notepad3 installation directories for unexpected DLL creation or modification, particularly MSFTEDIT.DLL. Endpoint detection and response (EDR) tools can flag unsigned or out-of-place DLLs loaded by Notepad3. Log application-level execution events if available. On shared or multi-user systems, audit directory permissions on application folders to identify overly permissive write access. Behavioral monitoring for unusual child processes spawned by Notepad3 may indicate successful exploitation, though sophisticated attacks may avoid spawning obvious child processes.
Why prioritize this
Although this vulnerability requires local access and user interaction, its high CVSS score (7.8) reflects the severity of arbitrary code execution. Prioritize patching in environments where Notepad3 is deployed on multi-user systems, shared workstations, or systems handling untrusted files. Lower priority for air-gapped or single-user systems with restricted file-system permissions, but still address to close the attack surface.
Risk score, explained
The CVSS 3.1 score of 7.8 (HIGH) reflects: Local attack vector (AV:L), low attack complexity (AC:L), no privilege requirement (PR:N), and requirement for user interaction (UI:R). The impact is severe: high confidentiality, integrity, and availability impact (C:H/I:H/A:H) because successful exploitation grants arbitrary code execution. The score appropriately balances the practical barrier (local access, user action) against the catastrophic outcome (code execution under user privileges). This is not a critical remote code execution, but it is a significant local code-execution flaw.
Frequently asked questions
What triggers the vulnerability?
Opening the About dialog in Notepad3 causes the application to attempt loading MSFTEDIT.DLL by name alone. If a malicious DLL with that name exists in a location Windows searches before the legitimate system library, the malicious version is loaded and executed.
Do I need administrator privileges to exploit this?
No. An attacker needs local file-system write access to place a malicious DLL in a searchable location, but this does not require administrative privileges. On multi-user systems or shared folders, a low-privileged user could potentially exploit other users' Notepad3 instances.
Is this vulnerability being actively exploited?
As of the publication date, this vulnerability has not been added to CISA's Known Exploited Vulnerabilities (KEV) catalog, so active exploitation in the wild has not been publicly confirmed. However, the simplicity of the attack makes it a likely target once patches are delayed.
What should I do if I cannot update Notepad3 immediately?
Restrict write permissions on Notepad3's installation directory to prevent DLL injection. Educate users to avoid extracting untrusted archives into the application folder. Use application whitelisting or file-integrity monitoring to detect unauthorized DLL creation. Consider using alternative text editors if Notepad3 remains unpatched for an extended period.
This analysis is provided for informational purposes and reflects available data as of the publication date. Patch version numbers and remediation steps should be verified against official Rizone Software advisories and release notes. Organizations should conduct internal risk assessment and testing before deploying patches. SEC.co makes no warranty regarding the completeness, accuracy, or timeliness of this information and disclaims liability for any damage resulting from use of this advisory. Source: NVD (public-domain), retrieved 2026-08-11. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2026-10847HIGHCheck Point Identity Agent Privilege Escalation Vulnerability (7.8 CVSS)
- CVE-2026-36574HIGHCactusViewer DLL Hijacking Vulnerability (CVSS 7.8 HIGH)
- CVE-2026-41567HIGHMoby Container Privilege Escalation via Malicious Archive Decompression
- CVE-2026-44358HIGHEspressif DangerJS Action Code Execution in Pull Request Workflows
- CVE-2026-44609HIGHAcronis DeviceLock DLP Local Privilege Escalation via EXE Hijacking
- CVE-2026-44682HIGHAcronis DeviceLock DLP Local Privilege Escalation via DLL Hijacking
- CVE-2026-47937HIGHAdobe Acrobat Reader Uncontrolled Search Path Code Execution
- CVE-2026-49241HIGHAngular Language Service VS Code Extension Arbitrary Code Execution