Buffer overflow in Nasm Netwide Assember
CVE-2025-8842
A vulnerability has been found in NASM Netwide Assember 2.17rc0. Affected by this issue is the function do_directive of the file preproc.c. The manipulation leads to use after free. An attack has to be approached locally. The exploit has been disclosed to the public and may be used.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.3 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L.
EPSS exploit prediction
EPSS 0.003, 19.1th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Nasm Netwide Assember — versions 2.17rc0
- Nasm Netwide Assembler — versions 2.17
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (fkie-cad/nvd-json-data-feeds). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- VDB-319376 | NASM Netwide Assember preproc.c do_directive use after free (technical-description, Third Party Advisory, VDB Entry, vdb-entry)
- VDB-319376 | CTI Indicators (IOB, IOC, IOA) (signature, Permissions Required, permissions-required, VDB Entry)
- Submit #623184 | nasm NASM version 2.17rc0 compiled on Jul 20 2025 and the newest master (888d9ab) Memory Corruption (Exploit, Third Party Advisory, VDB Entry, third-party-advisory)
- bugzilla.nasm.us/show_bug.cgi (issue-tracking, Exploit, Issue Tracking, Vendor Advisory)
- drive.google.com/file/d/11vEV1vMHXO4BrDGhvWAMm0Qo1woiUwVV/view (Exploit, exploit)