Skip to main content
Mallory
HighVulnerability

CVE-2026-54758: Stack Buffer Overflow in Notepad++ expandNppEnvironmentStrs

Published Aug 17, 2026 · Updated 2 months ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.8High · v3.1
EPSS0.19%5th percentile
CISA KEVNoNot listed
In the wildNoneNo exploitation reported
IdentifiersCVE-2026-54758CWE-121 · Stack-based Buffer Overflow

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

No public exploits tracked yet. Mallory keeps watching.

View more in app →
No public exploit code observed for this vulnerability. Mallory keeps watching.
FAQ

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.
Activity feed

Recent activity

7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidenceEvery report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity3Community discussion across Reddit, Mastodon, and other social sources.