Skip to main content

CVE-2025-52939

| EUVDEUVD-2025-18873 CRITICAL
Out-of-bounds Write (CWE-787)
2025-06-23 cve_disclosure@tech.gov.sg
9.4
CVSS 4.0 · NVD
View

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Impact

This vulnerability presents critical real-world risk due to convergence of multiple threat signals: (1) CVSS 9.4 (Critical) with AV:L/AC:L/AT:N/PR:N/UI:N indicates local attack vector, no privilege requirement, and immediate exploitability; (2) Severity indicators (VC:H/VI:H/VA:H/SC:H/SI:H/SA:H) confirm memory corruption enabling code execution, privilege escalation, and system compromise; (3) AU:Y (Authenticated) suggests the attacker must have local system access or valid session, reducing opportunistic internet-scale risk but maintaining high risk for multi-tenant systems, shared hosting, and insider threats; (4) RE:M (Remediation available) and V:C (Vulnerable) indicate patches exist but affected systems remain unpatched; (5) No KEV/CISA confirmation or public POC noted in provided intelligence, but the specificity of affected files (ldebug.c, lvm.c) and out-of-bounds write class suggest this is not a theoretical issue. SSVC assessment: Exploitation is likely (OOB writes in Lua are well-understood attack vectors), automatable (no complex trigger), with total impact (code execution, system compromise). Priority: Immediate for systems running NotepadNext ≤0.11, particularly in multi-user or privileged contexts.

Exploit ScenarioDerived

An authenticated local attacker on a shared Linux system (e.g., multi-tenant hosting, lab environment, or compromised standard user account) crafts a malicious Lua script or bytecode file and causes NotepadNext to execute it via editor scripting, plugin mechanism, or direct file load. The script triggers the out-of-bounds write in ldebug.c or lvm.c during bytecode execution or stack frame manipulation. The attacker overwrites a saved return address or function pointer on the stack. Upon function return, execution redirects to attacker-controlled shellcode (stored in heap/stack memory regions also corrupted in the same operation or prepared separately). The attacker achieves arbitrary code execution in the context of the NotepadNext process. If NotepadNext runs with elevated privileges (e.g., via sudo, SETUID binary, or system service), the attacker escalates to root/system privileges. Attack complexity: Low—no user interaction required (UI:N); attacker only needs local access and ability to place malicious Lua code in a path NotepadNext processes. No public POC noted, but OOB writes in Lua VM bytecode execution are well-documented research areas; proof-of-concept development is feasible for skilled attackers.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Mar 15, 2026

CVE-2025-52939 is an out-of-bounds write vulnerability in the Lua interpreter modules (ldebug.c, lvm.c) bundled with NotepadNext through version 0.11, allowing local attackers without privileges to achieve arbitrary code execution with high impact on confidentiality, integrity, and availability. With a CVSS score of 9.4 and local attack vector requiring no user interaction, this represents a critical local privilege escalation and code execution risk; KEV status and active exploitation data are not confirmed in available intelligence, but the high CVSS and presence of affected interpreter code suggest this warrants immediate patching.

RemediationAI

Immediate actions: (1) Upgrade NotepadNext to the latest patched version (beyond v0.11; check official NotepadNext GitHub releases for patch availability: https://github.com/dail8859/NotepadNext/releases). (2) If patched version unavailable, restrict NotepadNext execution to untrusted environments using OS-level sandboxing (AppArmor, SELinux, seccomp) or containerization (Docker with reduced capabilities). (3) Validate Lua bytecode: Disable or restrict Lua script execution in NotepadNext if not required; review any .lua files loaded by the application. (4) Monitor and audit local file access and process execution by NotepadNext; alert on unusual memory access patterns or child process creation. (5) Vendor coordination: Check NotepadNext official GitHub issues (https://github.com/dail8859/NotepadNext) for advisories, patch timelines, and backport availability for v0.11 branch. (6) Update Lua submodule: Ensure bundled Lua is updated to a patched upstream Lua version if vulnerability is confirmed in base Lua library.

Affected VersionsENISA

NotepadNext 0 ≤v0.11

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

NotepadNext bundles Lua interpreter code (CWE-787: Out-of-bounds Write) in its src/lua/src modules, specifically in ldebug.c and lvm.c—core components of the Lua virtual machine responsible for debugging and bytecode execution. CWE-787 occurs when software writes data beyond the boundaries of allocated memory structures, often leading to stack/heap corruption, control flow hijacking, and arbitrary code execution. The Lua VM processes bytecode and manages stack frames; a bounds check failure in these modules allows an attacker to overwrite adjacent memory regions (stack variables, function pointers, saved return addresses) with attacker-controlled data, achieving RCE. The vulnerability affects NotepadNext versions up to and including v0.11, indicating the vulnerable Lua code has not been patched in official releases.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 9.4 CRITICAL
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/S:N/AU:Y/R:U/V:C/RE:M/U:Red

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
High

DescriptionCVE.org

Out-of-bounds Write vulnerability in dail8859 NotepadNext (src/lua/src modules). This vulnerability is associated with program files ldebug.C, lvm.C.

This issue affects NotepadNext: through v0.11.

Executive ViewAI

Why It Matters

A critical out-of-bounds write vulnerability (CVE-2025-52939, CVSS 9.4) affects NotepadNext through v0.11, enabling remote code execution and complete system compromise. Organizations using NotepadNext are at immediate risk of data theft, malware infection, and operational disruption, particularly if the application processes untrusted files.

Business Impact: Severe
Compensating Controls

Disable NotepadNext or restrict to isolated, air-gapped systems until patch availability. Implement network segmentation to limit lateral movement if compromise occurs. Deploy file integrity monitoring and endpoint detection tools to identify exploitation attempts. Disable Lua scripting features if configurable. Require all NotepadNext instances to run with minimal user privileges and disable external file processing.

Threat Intelligence Overview

EPSS Score
0.0%
Top 92% exploitable
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
Very High

Priority Score

47
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +47
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy