Notepad3
CVE-2026-38972
HIGH
Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessGain write access to Notepad3 app/search-path directory
-
DeliveryPlant malicious MSFTEDIT.DLL
-
ExploitVictim opens About dialog
-
ExecutionLoadLibrary loads attacker DLL
-
ImpactArbitrary code executes as user
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A08:2025 - Software or Data Integrity Failures
ASVS 5.0
V13 - Configuration Search path element control
|
| Exploitation Conditions | Exploitation requires: (1) the attacker having write access to the Notepad3 application directory or an earlier entry in the Windows DLL search order relative to Notepad3.exe, into which a malicious file named exactly MSFTEDIT.DLL is placed; and (2) the victim user subsequently opening the About dialog in Notepad3, which triggers the vulnerable LoadLibrary(L"MSFTEDIT.DLL") call. Limiting factors that reduce real-world risk: the attack vector is local only (AV:L - no remote/network exploitation), it requires user interaction (UI:R - the About dialog must be manually opened), code runs only at the invoking user's privilege level (S:U, no privilege escalation), and it is far more feasible against portable/loosely-permissioned installs than against a locked-down %ProgramFiles% deployment where standard users cannot write the DLL. This is not a default-configuration remote flaw. |
| Impact | The provided CVSS 3.1 vector (AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H, base 7.8 High) correctly reflects a local attack vector requiring user interaction (opening the About dialog) but no prior privileges, yielding full confidentiality, integrity, and availability impact at the user's privilege level. This is a coherent, non-conflicting signal set: local vector plus required interaction, which matches the description precisely. EPSS of 0.18% (8th percentile) is low and consistent - DLL hijacking that depends on both filesystem write access to a search-order directory and a victim manually opening an About dialog does not scale to automated widescale exploitation. It is not on CISA KEV and no public exploit is identified, so this is a real but lower-priority, opportunistic/targeted issue rather than an urgent internet-facing threat. The main caveat: real-world exploitability hinges on whether Notepad3.exe is commonly run from attacker-writable directories (e.g., portable deployments), which the CVE data does not quantify. |
| Exploit ScenarioDerived | An attacker delivers or drops a malicious MSFTEDIT.DLL into a directory from which the victim runs Notepad3.exe - for example bundling it alongside a portable Notepad3 copy on a shared drive or in the user's Downloads folder. When the victim later opens Help → About in Notepad3, the planted DLL is loaded instead of the System32 copy and the attacker's code executes with the victim's privileges. No public POC is identified, but the low complexity (AC:L) means a working exploit DLL is trivial to construct. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 06, 2026
Local code execution in Notepad3 (versions through 6.25.822.1) arises from an insecure LoadLibrary(L"MSFTEDIT.DLL") call in the About-dialog path within src/Notepad3.c. Because the DLL is loaded by bare name, an attacker who can drop a malicious MSFTEDIT.DLL into the application directory or an earlier search-order location runs arbitrary code as the current user once that user opens the About dialog. No public exploit identified at time of analysis, and EPSS is low at 0.18% (8th percentile), consistent with a local, user-interaction-dependent flaw rather than a mass-exploitation target.
RemediationAI
Upstream fix available (PR/commit); released patched version not independently confirmed - the corrective change is tracked in https://github.com/rizonesoft/Notepad3/pull/5606 against issue https://github.com/rizonesoft/Notepad3/issues/5605, but no tagged release version is present in the provided data, so upgrade to the first Notepad3 build that incorporates PR #5606 (verify at https://github.com/rizonesoft/Notepad3). The proper code-level fix is to load MSFTEDIT.DLL with an absolute System32 path or use LoadLibraryEx with LOAD_LIBRARY_SEARCH_SYSTEM32 / SetDefaultDllDirectories. As compensating controls until patched: install and run Notepad3 only from a protected directory such as %ProgramFiles% where standard users lack write access (trade-off: breaks portable/USB usage); avoid launching Notepad3.exe from user-writable or shared/network locations like Downloads or temp folders (trade-off: requires user discipline); and consider application-directory ACL hardening or AppLocker/WDAC rules to block unsigned DLL loads from those paths (trade-off: management overhead and possible false positives for other portable apps).
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The root cause is CWE-427 (Uncontrolled Search Path Element), a classic Windows DLL search-order hijacking issue. MSFTEDIT.DLL is the Microsoft Rich Edit control library, normally resident in the System32 directory; calling LoadLibrary with only the module name (no absolute path and without a safe search flag such as LOAD_LIBRARY_SEARCH_SYSTEM32) causes Windows to walk its default DLL search order, which historically includes the directory of the loading executable before System32. If Notepad3.exe is launched from a directory an attacker can write to (a Downloads folder, a shared network path, a portable-app directory), a planted MSFTEDIT.DLL is loaded in preference to the legitimate system copy. The affected code path is the About dialog handler in src/Notepad3.c of the Rizonesoft Notepad3 editor.
Know when Notepad3 gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Local DLL planting (AV:L) with trivial complexity (AC:L), no prior privileges but victim must open the About dialog (UI:R); loaded code inherits full user-context C/I/A impact.
Primary rating from Vendor (mitre).
CVSS VectorVendor: mitre
Lifecycle Timeline
2DescriptionCVE.org
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.
Executive ViewAI
Notepad3 versions through 6.25.822.1 contain a code execution vulnerability that could be exploited by attackers with local file access to execute code as the current user. The attack requires user interaction and malicious file placement in the application directory, limiting exposure primarily to organizations with significant Notepad3 adoption. No vendor patch is currently available, requiring interim security controls.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict write permissions to Notepad3 application directories and DLL search paths via NTFS access controls; (2) Deploy application whitelisting or code integrity policies to prevent unauthorized DLL loading; (3) Monitor for suspicious MSFTEDIT.DLL files in user home directories, Temp folders, and application installation paths using file integrity monitoring tools; (4) User education on avoiding untrusted application sources and installations.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Affected Products (CPE)CVE.org
A vulnerability, which was classified as problematic, was found in Rizone Soft Notepad3 1.0.2.350. Rated medium severity
Out-of-bounds read vulnerability in Notepad3's Oniguruma regex engine (regcomp.C) allows local attackers with user inter
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB