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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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
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
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.
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
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.
EUVD-2025-18873
NVD
CVE.org
EPSS
GitHub
Exploit-DB