7.8high
Improper Control of Generation of Code ('Code Injection') in dail8859/NotepadNext
- Severity
- 7.8high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.24% (higher than 16% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
Description
Notepad Next is a cross-platform, reimplementation of Notepad++. Prior to version 0.14, NotepadNext's detectLanguageFromExtension() function interpolates a file's extension directly into a Lua script without sanitization. An attacker can craft a filename whose extension contains Lua code, which executes automatically when the victim opens the file in NotepadNext. Because luaL_openlibs() is called unconditionally, the full os, io, and package libraries are available to the injected code, enabling arbitrary command execution. This issue has been patched in version 0.14.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| dail8859 NotepadNext | < 0.14 | CVE List |
| dail8859 notepad_next | before 0.14 | NVD |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.
What each source says
CVE List
Notepad Next is a cross-platform, reimplementation of Notepad++. Prior to version 0.14, NotepadNext's detectLanguageFromExtension() function interpolates a file's extension directly into a Lua script without sanitization. An attacker can craft a filename whose extension contains Lua code, which executes automatically when the victim opens the file in NotepadNext. Because luaL_openlibs() is called unconditionally, the full os, io, and package libraries are available to the injected code, enabling arbitrary command execution. This issue has been patched in version 0.14.
NVD (es)
Notepad Next es una reimplementación multiplataforma de Notepad++. Antes de la versión 0.14, la función detectLanguageFromExtension() de NotepadNext interpola la extensión de un archivo directamente en un script Lua sin sanitización. Un atacante puede crear un nombre de archivo cuya extensión contiene código Lua, que se ejecuta automáticamente cuando la víctima abre el archivo en NotepadNext. Dado que luaL_openlibs() se llama incondicionalmente, las bibliotecas completas os, io y package están disponibles para el código inyectado, lo que permite la ejecución arbitraria de comandos. Este problema ha sido parcheado en la versión 0.14.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-42214 changed 2026-05-09 | CVE Terms of Use |
| NVD | CVE-2026-42214 changed 2026-10-26 | Public domain |