{"exploit":{"id":"EDB-25005","name":"NASM 0.98.x - Error Preprocessor Directive Buffer Overflow","description":"NASM 0.98.x - Error Preprocessor Directive Buffer Overflow","cves":["CVE-2004-1287"],"author":"Jonathan Rockway","published":"2004-12-15","platform":"linux","type":"remote","language":"Text","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/25005","path":"exploits/linux/remote/25005.txt","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-25005.txt","vulnerabilities":[{"id":"CVE-2004-1287","state":"PUBLISHED","title":null,"titleSource":null,"description":"Buffer overflow in the error function in preproc.c for NASM 0.98.38 1.2 allows attackers to execute arbitrary code via a crafted asm file, a different vulnerability than CVE-2005-1194.","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2004-1287","cvss":{"version":"2.0","baseScore":10,"severity":"high","vectorString":"AV:N/AC:L/Au:N/C:C/I:C/A:C","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2004-1287"},"updatedAt":"2024-08-08T00:46:12.310Z","retrievedAt":"2026-11-26T17:09:49.416Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-25005.png?v=2","url":"https://exploitbin.com/exploits/EDB-25005","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-25005/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-25005/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"source: https://web.archive.org/web/2004/https://www.securityfocus.com/bid/11991/info\n\nNASM is prone to a buffer overflow. This condition is exposed when the application attempts to assemble a source file that contains malformed '%error' preprocessor directive arguments. Since the source file may originate from an external or untrusted source, this vulnerability is considered remote in nature.\n\nSuccessful exploitation will permit arbitrary code execution with the privileges of the user running the application.\n\n----------------------------------------\n\nhttps://gitlab.com/exploit-database/exploitdb-bin-sploits/-/raw/main/bin-sploits/25005.zip","sha256":"506d77132636676553fefb2476ed83d9335d54b020b309824e10b3d4789fe45d","bytes":649,"fetchedAt":"2026-11-26T17:09:44.153Z","encoding":"utf-8 (display only; download retains original bytes)"}