PatchSiren

PatchSiren cyber security CVE debrief

CVE-2026-54758 notepad-plus-plus CVE debrief

A vulnerability in Notepad++ prior to version 8.9.7 allows for a stack buffer overflow, potentially leading to process termination and code execution. This issue is fixed in version 8.9.7. The vulnerability exists in the expandNppEnvironmentStrs function in PowerEditor/src/WinControls/StaticDialog/RunDlg/RunDlg.cpp, where a Notepad++ variable name is copied between $( and ) into a fixed-size wchar_t str[MAX_PATH] stack buffer without bounding the loop index. This can allow a name of 260 or more characters to corrupt adjacent stack data and potentially execute code.

Vendor
notepad-plus-plus
Product
Unknown
CVSS
HIGH 7.8
CISA KEV
Not listed in stored evidence
Original CVE published
2026-08-17
Original CVE updated
2026-09-09
Advisory published
2026-08-17
Advisory updated
2026-09-09

Who should care

Defenders responsible for Notepad++ installations should assess exposure and prioritize updating to version 8.9.7 or later. This includes IT administrators, security teams, and developers who use Notepad++ in their work. They should review the CVE record and NVD entry for more information on the vulnerability and its potential impact.

Why it matters

Defenders should prioritize updating Notepad++ to version 8.9.7 or later to address this vulnerability, as it allows for a stack buffer overflow potentially leading to process termination and code execution.

  • Potential process termination and code execution
  • Verification of Notepad++ version and installation
  • Monitoring for potential security advisories

Technical summary

The expandNppEnvironmentStrs function in PowerEditor/src/WinControls/StaticDialog/RunDlg/RunDlg.cpp copies a Notepad++ variable name between $( and ) into the fixed-size wchar_t str[MAX_PATH] stack buffer without bounding the loop index, allowing a name of 260 or more characters to corrupt adjacent stack data, terminate the process through __report_gsfailure, and potentially execute code. This issue is fixed in version 8.9.7. The vulnerability can be exploited by an attacker to execute arbitrary code on the affected system.

Defensive priority

Defenders should prioritize updating Notepad++ to version 8.9.7 or later to address this vulnerability.

Recommended defensive actions

  • Update Notepad++ to version 8.9.7 or later
  • Review and verify Notepad++ installations to ensure they are up-to-date
  • Monitor Notepad++ for any potential security advisories
  • Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
  • Review the supplied official advisory or CVE record to validate affected scope, severity, and vendor guidance
  • Plan vendor-supported updates or mitigations through normal change control where exposure is confirmed
  • Check relevant monitoring, detection, and logs for exposed assets that need extra review

Evidence notes

The CVE record and NVD entry provide details on the vulnerability, including its description and potential impact. The vulnerability was reported by [email protected] and fixed in version 8.9.7. The CVE record was published on 2026-08-17T20:16:44.323Z and has not been modified since then. The NVD entry provides additional information on the vulnerability, including its CVSS score and severity.

Sources and references

Verified primary and authoritative sources

  • CVE-2026-54758 CVE Program record

    Publisher, destination, and source semantics verified

    URL: https://www.cve.org/CVERecord?id=CVE-2026-54758

    CVE Program - Official CVE Program record with source-provided CVE metadata.

  • CVE-2026-54758 NVD vulnerability detail

    Publisher, destination, and source semantics verified

    URL: https://nvd.nist.gov/vuln/detail/CVE-2026-54758

    NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.

Supplemental references

Methodology and review provenance

AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.