{"id":"CVE-2025-52938","summary":"Potential heap-based buffer over-read vulnerability in NotepadNext","details":"Out-of-bounds Read vulnerability in dail8859 NotepadNext (src/lua/src modules). This vulnerability is associated with program files lparser.C.\n\n\nThis issue affects NotepadNext: through v0.11.\n\nThe singlevar() in lparser.c lacks a certain luaK_exp2anyregup call, leading to a heap-based buffer over-read that might affect a system that compiles untrusted Lua code.","modified":"2026-08-12T15:13:57.754764Z","published":"2025-06-23T09:26:39.214Z","database_specific":{"cna_assigner":"GovTech CSG","cwe_ids":["CWE-125"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/52xxx/CVE-2025-52938.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/52xxx/CVE-2025-52938.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-52938"},{"type":"FIX","url":"https://github.com/dail8859/NotepadNext/commit/66b8a97d9fdfd2257996875716f39c18d84e004f"},{"type":"FIX","url":"https://github.com/dail8859/NotepadNext/pull/756"},{"type":"PACKAGE","url":"https://github.com/dail8859/NotepadNext"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/dail8859/notepadnext","events":[{"introduced":"0"},{"fixed":"5875f739855ea0c80dba7a1f10ec8ab248587697"},{"fixed":"66b8a97d9fdfd2257996875716f39c18d84e004f"}],"database_specific":{"source":["DESCRIPTION","REFERENCES"],"extracted_events":[{"introduced":"0"},{"fixed":"v0.11"}]}}],"versions":["v0.11","v0.10","v0.9","v0.8","v0.7","v0.6.4","v0.6.3","v0.6.2","v0.6.1","v0.6","v0.5.6","v0.5.5","v0.5.4","v0.5.3","v0.5.2","v0.5.1","v0.5","v0.4.9","v0.4.8","v0.4.7","v0.4.6","v0.4.5","v0.4.4","v0.4.3","v0.4.2","v0.4.1","v0.4","v0.3.3","v0.3.2","v0.3.1","v0.3","v0.2","v0.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-52938.json","vanir_signatures_modified":"2026-08-12T15:13:57Z","vanir_signatures":[{"id":"CVE-2025-52938-6962136b","signature_type":"Line","signature_version":"v1","source":"https://github.com/dail8859/notepadnext/commit/66b8a97d9fdfd2257996875716f39c18d84e004f","target":{"file":"src/lua/src/lparser.c"},"deprecated":false,"digest":{"line_hashes":["32201794497045802336489965260675966661","62070470726804165498189986985088028985","64426429022605310367324308078587404372","155009965578900331517939787049871456751"],"threshold":0.9}},{"digest":{"function_hash":"131528664468641967379396546283768875518","length":355},"id":"CVE-2025-52938-b0007fa0","signature_type":"Function","signature_version":"v1","source":"https://github.com/dail8859/notepadnext/commit/66b8a97d9fdfd2257996875716f39c18d84e004f","target":{"file":"src/lua/src/lparser.c","function":"singlevar"},"deprecated":false}]}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:L/SI:L/SA:L/S:N/AU:Y/R:A/V:D/RE:M/U:Amber"}]}