CVE-2025-52939
BaseFortify
Publication date: 2025-06-23
Last updated on: 2025-06-23
Assigner: Government Technology Agency of Singapore Cyber Security Group (GovTech CSG)
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| dail8859 | notepadnext | * |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-787 | The product writes data past the end, or before the beginning, of the intended buffer. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability is an out-of-bounds write issue in NotepadNext's Lua interpreter source code, specifically in the files ldebug.c and lvm.c. It arises from improper stack management and error handling during Lua function errors and string concatenations. The problem can cause stack overflows or corruption by not correctly managing the Lua stack when errors occur or when concatenating strings that exceed allowed lengths. [1, 2]
How can this vulnerability impact me? :
The vulnerability can lead to stack overflows or memory corruption within the Lua interpreter used by NotepadNext. This can cause the application to crash, behave unpredictably, or potentially allow an attacker to execute arbitrary code or escalate privileges by exploiting the improper error handling and unchecked string operations. [1, 2]
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability is related to out-of-bounds write issues in the NotepadNext application, specifically in Lua source files ldebug.c and lvm.c. Detection would involve checking if your system is running NotepadNext version 0.11 or earlier, as these versions are affected. There are no specific network detection commands provided. On the system, you can verify the installed NotepadNext version by running commands like `notepadnext --version` or checking the installed package version. Additionally, monitoring application logs for Lua runtime errors related to stack overflow or string length overflow might help identify exploitation attempts, but no explicit commands are provided in the resources. [1, 2]
What immediate steps should I take to mitigate this vulnerability?
Immediate mitigation steps include updating NotepadNext to a version later than 0.11 where the vulnerability has been fixed. The fix involves improved error handling and stack management in the Lua interpreter source code files ldebug.c and lvm.c, preventing stack overflows and string length overflows. If an update is not immediately possible, restricting access to the application and monitoring for unusual Lua runtime errors may reduce risk. Applying patches from the official repository commits or pull requests addressing CVE-2025-52939 is recommended. [1, 2]