Heap-based Buffer Overflow Affecting nasm package, versions [0,]


0.0
high

Snyk CVSS

    Attack Complexity Low

    Threat Intelligence

    Exploit Maturity Proof of concept
    EPSS 0.05% (21st percentile)
Expand this section
NVD
7.8 high
Expand this section
Red Hat
5.5 medium

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-UNMANAGED-NASM-5603268
  • published 26 May 2023
  • disclosed 26 May 2023
  • credit Daisy Chen

How to fix?

There is no fixed version for nasm.

Overview

Affected versions of this package are vulnerable to Heap-based Buffer Overflow. The issue resides in the expand_mmacro function within the asm/preproc.c file. By providing certain malformed input to nasm, an attacker can trigger a heap buffer overflow, resulting in a read of size 4 beyond the allocated buffer.

References