CVE-2025-8845 NASM Netwide Assember nasm.c assemble_file stack-based overflow

Medium 4.8 Published Updated

A stack-based buffer overflow in the NASM assembler allows local attackers to execute arbitrary code or cause a denial of service.

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

What is CVE-2025-8845?

CVE-2025-8845 is a medium-severity memory corruption vulnerability in Nasm Netwide Assembler, published on 11 Aug 2025. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

A vulnerability was identified in NASM Netwide Assember 2.17rc0. This issue affects the function assemble_file of the file nasm.c. The manipulation leads to stack-based buffer overflow. It is possible to launch the attack on the local host. The exploit has been disclosed to the public and may be used.

Weakness: CWE-121, CWE-119

Which versions are affected by CVE-2025-8845?

It affects 1 product.

Products include Nasm Netwide Assembler.

How do I fix CVE-2025-8845?

No fix has been published for CVE-2025-8845 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-8845 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-8845 exists.

All Nasm Netwide Assembler vulnerabilities

Sources

Also known as AZL-66261, AZL-66285, DEBIAN-CVE-2025-8845, GHSA-mfr3-237x-37w4, UBUNTU-CVE-2025-8845.

Is CVE-2025-8845 in your software?

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

Check your SBOMs for free