CVE-2026-54758: Stack Buffer Overflow in Notepad++ expandNppEnvironmentStrs
CVE-2026-54758 is a stack-based buffer overflow vulnerability in Notepad++ affecting versions prior to 8.9.7. The flaw resides in the core function expandNppEnvironmentStrs and is caused by insufficient bounds checking when processing environment variable names and copying data into a fixed-size stack-allocated buffer or structure. A crafted input containing unusually long or malformed environment variable references can trigger an out-of-bounds write, resulting in memory corruption within the Notepad++ process. Public reporting describes the issue as potentially leading to remote code execution in theory, although some technical analysis indicates the compiler's /GS stack canary detects the corruption in practical cases, making application termination the more likely observed outcome.
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 causes stack memory corruption in the Notepad++ process. The most reliable impact described is application crash and denial of service in the current user context. In more advanced exploitation scenarios, corruption of stack state could potentially alter control flow and yield arbitrary code execution with the privileges of the user running Notepad++. However, available reporting also indicates that /GS stack protection detects the overwrite in practical cases, which may significantly constrain exploitability and make crashes more likely than reliable code execution.
Mitigation
If you can’t patch tonight, do this now.
Until patching is completed, reduce exposure by limiting the handling of untrusted files, projects, sessions, or other externally influenced inputs that may reach environment-variable expansion logic. Restrict use of vulnerable Notepad++ versions in higher-risk workflows, especially where attacker-controlled content can be opened or imported. Application hardening features such as compiler stack protections may reduce practical exploitability, but they should not be treated as a substitute for upgrading.
Remediation
Patch, then assume compromise.
Upgrade Notepad++ to version 8.9.7 or later, which contains the vendor fix for CVE-2026-54758. Organizations should prioritize patching installations that process untrusted content or are used in enterprise and development workflows. Standardize deployment on the fixed release and remove or replace vulnerable earlier versions.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2026-54758 exploited in the wild?
- As of Sep 25, 2026, Mallory has no reports of CVE-2026-54758 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-54758?
- As of Sep 25, 2026, Mallory has found no public exploit for CVE-2026-54758.
- Is there a patch for CVE-2026-54758?
- Upgrade Notepad++ to version 8.9.7 or later, which contains the vendor fix for CVE-2026-54758. Organizations should prioritize patching installations that process untrusted content or are used in enterprise and development workflows.
- How severe is CVE-2026-54758?
- CVE-2026-54758 has a CVSS v3.1 score of 7.8 (High) and an EPSS score of 0.19% (5th percentile) as of Sep 25, 2026.
Recent activity
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.