Security Vulnerability Report
中文
CVE-2026-6069 CVSS 7.5 HIGH

CVE-2026-6069

Published: 2026-04-10 14:16:39
Last Modified: 2026-04-16 19:48:48

Description

NASM’s disasm() function contains a stack based buffer overflow when formatting disassembly output, allowing an attacker triggered out-of-bounds write when `slen` exceeds the buffer capacity.

CVSS Details

CVSS Score
7.5
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Configurations (Affected Products)

cpe:2.3:a:nasm:netwide_assembler:3.02:rc5:*:*:*:*:*:* - VULNERABLE
NASM (具体版本请参考官方Issue #217)

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#include <stdio.h> #include <stdlib.h> #include <string.h> // Conceptual PoC for CVE-2026-6069 // This demonstrates triggering the buffer overflow in disasm() // by providing input that results in an output string (slen) // larger than the internal buffer capacity. // Mocking the vulnerable function signature for demonstration int vulnerable_disasm(unsigned char *data, int len, char *out_buf, int out_buf_size); int main() { // 1. Prepare malicious bytecode that disassembles into a long string // or manipulates the internal state to cause slen overflow. unsigned char payload[1024]; // Fill with crafted opcodes (omitted for brevity) memset(payload, 0x90, sizeof(payload)); // 2. Target buffer on the stack char output_buffer[256]; printf("[+] Triggering disasm() overflow...\n"); // 3. Call the vulnerable function // The vulnerability occurs when formatting output where slen > buffer size. // This will cause a stack-based buffer overflow. vulnerable_disasm(payload, sizeof(payload), output_buffer, sizeof(output_buffer)); printf("[-] Exploit finished.\n"); return 0; }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-6069", "sourceIdentifier": "[email protected]", "published": "2026-04-10T14:16:38.820", "lastModified": "2026-04-16T19:48:48.110", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "NASM’s disasm() function contains a stack based buffer overflow when formatting disassembly output, allowing an attacker triggered out-of-bounds write when `slen` exceeds the buffer capacity."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-787"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:nasm:netwide_assembler:3.02:rc5:*:*:*:*:*:*", "matchCriteriaId": "EA22EDB2-D094-433E-887D-A211FEC02A90"}]}]}], "references": [{"url": "https://github.com/netwide-assembler/nasm/issues/217", "source": "[email protected]", "tags": ["Exploit", "Issue Tracking"]}]}}