CVE-2025-52938

Source
https://cve.org/CVERecord?id=CVE-2025-52938
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-52938.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-52938
Published
2025-06-23T09:26:39Z
Modified
2026-08-12T15:13:57Z
Severity
  • 5.1 (Medium) CVSS_V4 - 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 CVSS Calculator
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.

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.

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

Affected packages

Git / github.com/dail8859/notepadnext

Affected ranges

Type
GIT
Repo
https://github.com/dail8859/notepadnext
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
Show details
{
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "v0.11"
        }
    ],
    "source": [
        "DESCRIPTION",
        "REFERENCES"
    ]
}

Affected versions

v0.*
v0.1
v0.10
v0.11
v0.2
v0.3
v0.3.1
v0.3.2
v0.3.3
v0.4
v0.4.1
v0.4.2
v0.4.3
v0.4.4
v0.4.5
v0.4.6
v0.4.7
v0.4.8
v0.4.9
v0.5
v0.5.1
v0.5.2
v0.5.3
v0.5.4
v0.5.5
v0.5.6
v0.6
v0.6.1
v0.6.2
v0.6.3
v0.6.4
v0.7
v0.8
v0.9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-52938.json"
vanir_signatures
[
    {
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "32201794497045802336489965260675966661",
                "62070470726804165498189986985088028985",
                "64426429022605310367324308078587404372",
                "155009965578900331517939787049871456751"
            ],
            "threshold": 0.9
        },
        "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": {
            "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"
        }
    }
]
vanir_signatures_modified
"2026-08-12T15:13:57Z"