CVE-2023-31722
There exists a heap buffer overflow in nasm 2.16.02rc1 (GitHub commit: b952891).
There exists a heap buffer overflow in nasm 2.16.02rc1 (GitHub commit: b952891).
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
7.8
There exists a heap buffer overflow in nasm 2.16.02rc1 (GitHub commit: b952891).
- Record
CVE-2023-31722- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-787
- Updated
- 2026-11-02
CVE List
7.8
There exists a heap buffer overflow in nasm 2.16.02rc1 (GitHub commit: b952891).
- Record
CVE-2023-31722- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-787
- Updated
- 2026-11-02
EUVDEUVD-2023-36013
7.8
There exists a heap buffer overflow in nasm 2.16.02rc1 (GitHub commit: b952891).
- Record
EUVD-2023-36013- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-8wfr-mc87-9vq6
7.8
There exists a heap buffer overflow in nasm 2.16.02rc1 (GitHub commit: b952891).
There exists a heap buffer overflow in nasm 2.16.02rc1 (GitHub commit: b952891).
- Record
GHSA-8wfr-mc87-9vq6- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-787
- Updated
- 2026-11-02
OSV
7.8
There exists a heap buffer overflow in nasm 2.16.02rc1 (GitHub commit: b952891).
- Record
CVE-2023-31722- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2023-31722
7.8
There exists a heap buffer overflow in nasm 2.16.02rc1 (GitHub commit: b952891).
- Record
DEBIAN-CVE-2023-31722- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVOESA-2025-2623
7.8
nasm security update
NASM is the Netwide Assembler, a free portable assembler for the Intel 80x86 microprocessor series, using primarily the traditional Intel instruction mnemonics and syntax. It also provides tools in RDOFF binary format, includes linker, library manager, loader, and information dump.
Security Fix(es):
There exists a heap buffer overflow in nasm 2.16.02rc1 (GitHub commit: b952891).(CVE-2023-31722)
- Record
OESA-2025-2623- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2023-31722
7.8
There exists a heap buffer overflow in nasm 2.16.02rc1 (GitHub commit: b952891).
- Record
UBUNTU-CVE-2023-31722- CVSS 3.1
- 7.8 High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUSN-8248-1 No score
nasm vulnerabilities
Daisy Chen discovered that NASM was vulnerable to a heap buffer overflow when handling certain input. An attacker could possibly use this issue to cause NASM to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2023-31722)
It was discovered that NASM incorrectly handled memory allocation. An attacker could possibly use this issue to cause NASM to use excessive resources, leading to a denial of service. This issue only affected Ubuntu 24.04 LTS. (CVE-2021-33452, CVE-2021-33450)
- Record
USN-8248-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
nasmDebian:12 |
All versions, plus listed versions 2.16.01-12.16.03-13.01-1 |
None known |
nasmDebian:13 |
All versions, plus listed versions 2.16.03-13.01-1 |
None known |
nasmDebian:14 |
All versions, plus listed versions 2.16.03-13.01-1 |
None known |
nasmopenEuler:24.03-LTS-SP1 |
before 2.16.01-2.oe2403sp1 | 2.16.01-2.oe2403sp1 |
nasmopenEuler:24.03-LTS-SP2 |
before 2.16.01-2.oe2403sp2 | 2.16.01-2.oe2403sp2 |
nasmopenEuler:20.03-LTS-SP4 |
before 2.15.05-3.oe2003sp4 | 2.15.05-3.oe2003sp4 |
nasmopenEuler:22.03-LTS-SP3 |
before 2.15.05-8.oe2203sp3 | 2.15.05-8.oe2203sp3 |
nasmopenEuler:22.03-LTS-SP4 |
before 2.15.05-8.oe2203sp4 | 2.15.05-8.oe2203sp4 |
nasmopenEuler:24.03-LTS |
before 2.16.01-2.oe2403 | 2.16.01-2.oe2403 |
nasmUbuntu:Pro:22.04:LTS |
before 2.15.05-1ubuntu0.1~esm1, plus listed versions 2.15.05-1 |
2.15.05-1ubuntu0.1~esm1 |
Show 4 moreShow less
| Package | Affected | Fixed |
|---|---|---|
nasmUbuntu:Pro:24.04:LTS |
before 2.16.01-1ubuntu0.1~esm1, plus listed versions 2.16.01-12.16.01-1build1 |
2.16.01-1ubuntu0.1~esm1 |
nasmUbuntu:25.10 |
All versions, plus listed versions 2.16.03-1 |
None known |
nasmUbuntu:Pro:22.04:LTS From an advisory covering 3 CVEs |
before 2.15.05-1ubuntu0.1~esm1, plus listed versions 2.15.05-1 |
2.15.05-1ubuntu0.1~esm1 |
nasmUbuntu:Pro:24.04:LTS From an advisory covering 3 CVEs |
before 2.16.01-1ubuntu0.1~esm1, plus listed versions 2.16.01-12.16.01-1build1 |
2.16.01-1ubuntu0.1~esm1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2023-31722 is a high vulnerability (CVSS 7.8) in Nasm Netwide Assembler, published May 17, 2023. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.35%, the 28th percentile. Fixed in nasm 2.16.01-2.oe2403sp1.
References
bugzilla.nasm.us/show_bug.cgi?id=3392857
nvd.nist.gov/vuln/detail/CVE-2023-31722
github.com/advisories/GHSA-8wfr-mc87-9vq6
github.com/CVEProject/cvelistV5/tree/main/cves/2023/31xxx/CVE-2023-31722.json
security-tracker.debian.org/tracker/CVE-2023-31722
openeuler.org/zh/security/security-bulletins/detail?id=openEuler-SA-2025-2623