CVE-2026-48778: Arbitrary Code Execution in Notepad++ config.xml commandLineInterpreter
- Vendor
- Notepad++
CVE-2026-48778 is an arbitrary code execution vulnerability in Notepad++ affecting versions prior to 8.9.6.1. The issue is caused by unsafe handling of the <GUIConfig name="commandLineInterpreter"> element in config.xml. Notepad++ reads this value via NppXml::value() in Parameters.cpp and stores it in the GUI configuration state without validation, allowlisting, or integrity verification. When the user invokes File → Open Containing Folder → cmd (IDM_FILE_OPEN_CMD), Notepad++ constructs a Command object from the attacker-controlled value in NppCommands.cpp and ultimately passes it to ShellExecute() in RunDlg.cpp as the executable path. Because the executable path is fully attacker-controlled, a modified config.xml can cause Notepad++ to launch an arbitrary program instead of the intended command interpreter. Public reporting also describes practical abuse paths including tampering with %APPDATA%\Notepad++\config.xml, redirecting Notepad++ to attacker-controlled settings via the -settingsDir parameter, and poisoning cloud-synchronized configuration locations.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation results in arbitrary code execution in the security context of the current user. An attacker who can influence the victim's Notepad++ configuration can cause execution of arbitrary local programs when the victim uses the "Open Containing Folder in cmd" feature. This can be used to run malware, establish persistence, execute follow-on payloads, or abuse trusted user workflows. Impact is limited to the privileges of the user running Notepad++, but on developer or administrative workstations this may still be operationally significant.
Mitigation
If you can’t patch tonight, do this now.
Until patching is completed, prevent unauthorized modification of Notepad++ configuration files, especially %APPDATA%\Notepad++\config.xml and any alternate settings directories. Restrict or monitor use of the -settingsDir option, review cloud-synced or shared configuration paths for tampering, and monitor for unexpected changes to Notepad++ XML configuration files. In enterprise environments, reduce write access to user configuration locations where feasible and educate users against opening untrusted shortcuts or archives that may redirect or replace settings.
Remediation
Patch, then assume compromise.
Upgrade Notepad++ to version 8.9.6.1 or later. The vendor fix removes the configurable commandLineInterpreter setting from config.xml and replaces it with trusted system paths for launching cmd and PowerShell, eliminating the attacker-controlled executable path used by the vulnerable workflow.
Exploits
3 exploits validated by Mallory's analysis. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2026-48778 exploited in the wild?
- As of Sep 25, 2026, Mallory has no reports of CVE-2026-48778 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-48778?
- Yes. Mallory tracks 3 public exploits or proofs of concept for CVE-2026-48778, the earliest disclosed May 28, 2026.
- Is there a patch for CVE-2026-48778?
- Upgrade Notepad++ to version 8.9.6.1 or later. The vendor fix removes the configurable commandLineInterpreter setting from config.xml and replaces it with trusted system paths for launching cmd and PowerShell, eliminating the attacker-controlled executable path used by the vulnerable workflow.
- What products are affected by CVE-2026-48778?
- Notepad++.
- How severe is CVE-2026-48778?
- CVE-2026-48778 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 0.62% (44th percentile) as of Sep 25, 2026.
Recent activity
28 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.