CVE-2026-77605

Notepad++ “Run by system” executes *.txt.cmd when user selected *.txt (target confusion → command execution)

Published Sep 22, 2026 CVSS 3.1 · 7.8 High EPSS < 1% KEV · Not listed
Description
Notepad++ is a free and open-source source code editor. Prior to 8.9.8, the Folder as Workspace Run by system action in Notepad++ can resolve a different sibling file than the file selected by the user. When an attacker places a command script whose name is the selected text-file path with .cmd appended, and the user invokes Run by system on the text file on Windows 10 or Windows 11, Notepad++ can execute the sibling script as the current user instead of opening the selected file. This issue is fixed in version 8.9.8.

Analysis

AI-generated

Technical impact

Notepad++ 8.9.8 and earlier contained a path resolution flaw in the "Run by system" feature for text files. When a user selects a .txt file and invokes this command, the application mistakenly resolves a sibling file with the same base name plus a .cmd extension. If an attacker places a malicious command script next to the selected file, Notepad++ can execute that script with the current user's privileges. This defect allows an attacker to run arbitrary commands as the user without needing elevated permissions, effectively granting local command execution.

Affected Systems

The issue applies to Windows 10 and Windows 11 machines running any Notepad++ version prior to 8.9.8, regardless of other features installed. The vulnerability is triggered when the "Run by system" option is used on a text file on the local filesystem.

Risk and Exploitability

The vulnerability has a CVSS score of 7.8, indicating a high severity. The EPSS score is not available, and the flaw is not listed in the CISA KEV catalog, suggesting at this time that exploitation is considered possible but not widely demonstrated. Attackers need only a local user who enables the run option and has control over the filesystem to place a malicious .cmd file, so the attack vector is local and user‑initiated. The risk is moderate to high for users who frequently run files from untrusted locations.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Notepad++ to version 8.9.8 or newer to eliminate the path confusion flaw.
  • Disable the "Run by system" feature for local files to reduce exposure if an immediate upgrade is not possible.
  • Review user access controls and restrict directory write permissions to prevent malicious script placement.

Generated by OpenCVE AI on September 22, 2026 at 19:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Notepad-plus-plus
Notepad-plus-plus notepad++
Vendors & Products Notepad-plus-plus
Notepad-plus-plus notepad++
Type Values Removed Values Added
Description Notepad++ is a free and open-source source code editor. Prior to 8.9.8, the Folder as Workspace Run by system action in Notepad++ can resolve a different sibling file than the file selected by the user. When an attacker places a command script whose name is the selected text-file path with .cmd appended, and the user invokes Run by system on the text file on Windows 10 or Windows 11, Notepad++ can execute the sibling script as the current user instead of opening the selected file. This issue is fixed in version 8.9.8.
Title Notepad++ “Run by system” executes *.txt.cmd when user selected *.txt (target confusion → command execution)
Weaknesses CWE-20
CWE-706
References
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-20

    Improper Input Validation

  • CWE-706

    Use of Incorrectly-Resolved Name or Reference

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 28, 2026, 5:37 PM
Reserved
Aug 20, 2026, 8:48 PM
Status
Awaiting Analysis
Published
Sep 22, 2026, 6:17 PM
Modified
Sep 28, 2026, 6:17 PM