CVE-2025-52938 Potential heap-based buffer over-read vulnerability in NotepadNext

Medium 5.1 Published Updated

A heap-based buffer over-read in NotepadNext's Lua parser allows attackers to cause crashes or leak memory when compiling untrusted Lua code.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-52938?

CVE-2025-52938 is a medium-severity memory corruption vulnerability in dail8859 NotepadNext, published on 23 Jun 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

Out-of-bounds Read vulnerability in dail8859 NotepadNext (src/lua/src modules). This vulnerability is associated with program files lparser.C.

This issue affects NotepadNext: through v0.11.

The 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.

Weakness: CWE-125

Which versions are affected by CVE-2025-52938?

How do I fix CVE-2025-52938?

No fix has been published for CVE-2025-52938 yet. Limit exposure of the affected software until one is available.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2025-52938 being exploited?

There is no known exploitation of CVE-2025-52938 in the wild and no public exploit code.

Sources

Also known as GHSA-7958-493x-jj7h.

Is CVE-2025-52938 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free