# CVE-2025-8842: NASM Netwide Assember preproc.c do_directive use after free

- Severity: Medium 4.8 (CVSS:4.0, scored by VulDB) `CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 3 links below, marked "exploit"
- Published: 2025-08-11T10:32:09.151Z
- Modified: 2026-06-17T10:07:46.007Z
- Weaknesses: CWE-119, CWE-416
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulDB

## Description

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.

(As written by CVE List.)

## Affected

- NASM Netwide Assember: 2.17rc0
- nasm netwide_assembler: 2.17

## Every score

- VulDB: CVSS:4.0 4.8 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P`
- VulDB: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R`
- VulDB: CVSS:3.0 5.3 Medium `CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:X/RC:R`
- VulDB: CVSS:2.0 4.3 Medium `AV:L/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:ND/RC:UR`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://vuldb.com/?submit.623184> (exploit, third-party-advisory, vdb-entry)
- <https://bugzilla.nasm.us/show_bug.cgi?id=3392933> (exploit, issue-tracking, vendor-advisory)
- <https://drive.google.com/file/d/11vEV1vMHXO4BrDGhvWAMm0Qo1woiUwVV/view?usp=drive_link> (exploit)
- <https://vuldb.com/?id.319376> (technical-description, third-party-advisory, vdb-entry)
- <https://vuldb.com/?ctiid.319376> (permissions-required, signature, vdb-entry)

## Sources

- CVE List: [CVE-2025-8842](https://www.cve.org/CVERecord?id=CVE-2025-8842), CVE Terms of Use, modified 2025-08-11
- NVD: [CVE-2025-8842](https://nvd.nist.gov/vuln/detail/CVE-2025-8842), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-8842 · Whole record: https://cve.day/CVE-2025-8842.json · Rebuilt by cve.day 2026-11-25T22:59:02.270Z
