{"id":"CVE-2004-1287","aliases":["BELL-CVE-2004-1287","DEBIAN-CVE-2004-1287","DSA-623-1","EUVD-2004-1284","GHSA-vq2p-3c23-ghfm","RHSA-2005:381"],"status":"published","title":"Buffer overflow in the error function in preproc.c for NASM 0.98.38 1.2 allows attackers to...","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.","severity":{"version":"2.0","score":10,"vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-07","score":0.17882,"percentile":0.97193,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"cwes":["CWE-787"],"published":"2004-12-22T05:00:00Z","modified":"2026-10-21T15:47:28Z","exploits":[{"source":"exploitdb","id":"EDB-25005","title":"NASM 0.98.x - Error Preprocessor Directive Buffer Overflow","type":"remote","platform":"linux","date":"2004-12-15","verified":true,"url":"https://www.exploit-db.com/exploits/25005"}],"fixes":[{"ecosystem":"Debian:12","package":"nasm","fixed_in":["0.98.38-1.1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"nasm","fixed_in":["0.98.38-1.1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"nasm","fixed_in":["0.98.38-1.1"],"sources":["osv"]},{"ecosystem":"Debian:3.0","package":"nasm","fixed_in":["0.98.28cvs-1woody2"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"nasm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.98.38-1.1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"nasm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.98.38-1.1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"nasm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.98.38-1.1"}]}]},{"source":"osv","ecosystem":"Debian:3.0","package":"nasm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.98.28cvs-1woody2"}]}],"versions":["0.98.28cvs-1"]},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"nasm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.98.35-3.EL3"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::as","package":"nasm-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.98.35-3.EL3"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"nasm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.98.35-3.EL3"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::desktop","package":"nasm-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.98.35-3.EL3"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"nasm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.98.35-3.EL3"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::es","package":"nasm-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.98.35-3.EL3"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"nasm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.98.35-3.EL3"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:3::ws","package":"nasm-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.98.35-3.EL3"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::as","package":"nasm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.98.38-3.EL4"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::as","package":"nasm-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.98.38-3.EL4"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::as","package":"nasm-doc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.98.38-3.EL4"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::as","package":"nasm-rdoff","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.98.38-3.EL4"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::desktop","package":"nasm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.98.38-3.EL4"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::desktop","package":"nasm-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.98.38-3.EL4"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::desktop","package":"nasm-doc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.98.38-3.EL4"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::desktop","package":"nasm-rdoff","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.98.38-3.EL4"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::es","package":"nasm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.98.38-3.EL4"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::es","package":"nasm-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.98.38-3.EL4"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::es","package":"nasm-doc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.98.38-3.EL4"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::es","package":"nasm-rdoff","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.98.38-3.EL4"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::ws","package":"nasm","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.98.38-3.EL4"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::ws","package":"nasm-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.98.38-3.EL4"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::ws","package":"nasm-doc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.98.38-3.EL4"}]}],"bundled":2},{"source":"osv","ecosystem":"Red Hat:enterprise_linux:4::ws","package":"nasm-rdoff","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:0.98.38-3.EL4"}]}],"bundled":2}],"products":[{"vendor":"nasm","product":"netwide_assembler"}],"references":[{"url":"http://www.redhat.com/support/errata/RHSA-2005-381.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred","Not Applicable","web"]},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A11299","tags":["vdb-entry","signature","x_refsource_OVAL","x_transferred","Broken Link","web"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/18540","tags":["vdb-entry","x_refsource_XF","x_transferred","Third Party Advisory","VDB Entry","advisory"]},{"url":"http://tigger.uic.edu/~jlongs2/holes/nasm.txt","tags":["x_refsource_MISC","x_transferred","Exploit","Vendor Advisory","advisory","evidence","article"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2004-1287","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-vq2p-3c23-ghfm"},{"url":"https://docs.bell-sw.com/security/cves/CVE-2004-1287","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2004-1287","tags":["advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2005:381","tags":["advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#low","tags":["article"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=143081","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=152962","tags":["report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2005/rhsa-2005_381.json","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2004-1287","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1617404","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2004-1287","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2005-1194","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1617615","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2005-1194","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2005-1194","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2004-1287","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.","status":"published","published":"2004-12-22T05:00:00Z","modified":"2024-08-08T00:46:12.31Z","updated_at":"2026-11-02T14:34:54.063504Z"}],"euvd":[{"id":"EUVD-2004-1284","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.","status":"published","published":"2004-12-22T05:00:00Z","modified":"2024-08-08T00:46:12Z","updated_at":"2026-11-03T01:15:15.601329Z"}],"ghsa":[{"id":"GHSA-vq2p-3c23-ghfm","title":"Buffer overflow in the error function in preproc.c for NASM 0.98.38 1.2 allows attackers to...","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.","status":"published","published":"2022-04-29T02:59:16Z","modified":"2023-12-22T18:30:27Z","cwes":["CWE-787"],"updated_at":"2026-11-02T14:55:16.323735Z"}],"nvd":[{"id":"CVE-2004-1287","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.","status":"published","published":"2005-01-10T05:00:00Z","modified":"2026-06-16T22:07:24.117Z","cvss":[{"version":"2.0","score":10,"vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary"}],"cwes":["CWE-787"],"updated_at":"2026-11-02T14:00:53.662124Z"}],"osv":[{"id":"BELL-CVE-2004-1287","title":"CVE-2004-1287 does not affect BellSoft software","status":"withdrawn","published":"2005-01-10T05:00:00Z","modified":"2026-01-28T07:19:00.226156Z","cvss":[{"version":"2.0","score":10,"vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","level":"critical"}],"updated_at":"2026-11-02T15:28:12.886815Z"},{"id":"CVE-2004-1287","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.","status":"published","published":"2005-01-10T05:00:00Z","modified":"2026-04-10T03:36:36.655038Z","updated_at":"2026-11-02T15:43:56.315348Z"},{"id":"DEBIAN-CVE-2004-1287","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.","status":"published","published":"2005-01-10T05:00:00Z","modified":"2026-10-21T15:47:28.45400341Z","updated_at":"2026-11-02T15:45:22.55978Z"},{"id":"DSA-623-1","title":"nasm - buffer overflow","status":"published","published":"2005-01-04T00:00:00Z","modified":"2026-03-09T02:10:01.905767Z","updated_at":"2026-11-02T15:46:18.296714Z"},{"id":"RHSA-2005:381","title":"Red Hat Security Advisory: nasm security update","status":"published","published":"2024-09-15T15:25:43Z","modified":"2026-06-26T10:03:00Z","updated_at":"2026-11-02T15:52:59.135214Z"}]}}
