CVE-2004-1287: 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…
Noroxi assessment
Priority: Plan (action score 45/100)
- Public proof-of-concept code exists (Exploit-DB); there is no record of exploitation in the wild.
- Probability of exploitation in the next 30 days: 17.8% (FIRST EPSS); higher than 97.2% of all records.
- No special conditions are required; it is repeatable.
- Fixed version: nasm (Debian:12) 0.98.38-1.1; nasm (Debian:3.0) 0.98.28cvs-1woody2; nasm (Red Hat:enterprise_linux:3::as) 0:0.98.35-3.EL3.
Add it to your regular patch cycle. Upgrade to nasm (Debian:12) 0.98.38-1.1; nasm (Debian:3.0) 0.98.28cvs-1woody2; nasm (Red Hat:enterprise_linux:3::as) 0:0.98.35-3.EL3 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- Published
- Jan 10, 2005
- Updated
- Jun 16, 2026
- EPSS
- 17.8% · 97th percentile
- CWE
- CWE-787
Report tools
Action score
45
Add it to your regular patch cycle.
- CVSS
- 40 / 40 · 10.0 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 5 / 30 · 17.8%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- Proof of concept exists, no weaponized module
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| nasm | netwide assembler | cpe:2.3:a:nasm:netwide_assembler |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- nasm netwide assembler0.98.38
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | nasm | before 0.98.38-1.1 | 0.98.38-1.1 |
| Debian:3.0 | nasm | before 0.98.28cvs-1woody2 | 0.98.28cvs-1woody2 |
| Red Hat:enterprise_linux:3::as | nasm | before 0:0.98.35-3.EL3 | 0:0.98.35-3.EL3 |
| Red Hat:enterprise_linux:3::as | nasm-debuginfo | before 0:0.98.35-3.EL3 | 0:0.98.35-3.EL3 |
| Red Hat:enterprise_linux:4::as | nasm | before 0:0.98.38-3.EL4 | 0:0.98.38-3.EL4 |
| Red Hat:enterprise_linux:4::as | nasm-debuginfo | before 0:0.98.38-3.EL4 | 0:0.98.38-3.EL4 |
| Red Hat:enterprise_linux:4::as | nasm-doc | before 0:0.98.38-3.EL4 | 0:0.98.38-3.EL4 |
| Red Hat:enterprise_linux:4::as | nasm-rdoff | before 0:0.98.38-3.EL4 | 0:0.98.38-3.EL4 |
Same product
nasm: all recordsOther highest-scoring records for the same primary product.
- CVE-2020-24978In NASM 2.15.04rc3, there is a double-free vulnerability in pp_tokline asm/preproc.c.39Monitor
- CVE-2026-6068NASM contains a heap use after free vulnerability in response file (-@) processing where a dangling pointer to freed memory is stored in…38Monitor
- CVE-2008-7177Buffer overflow in the listing module in Netwide Assembler (NASM) before 2.03.01 has unknown impact and attack vectors, a different…38Monitor
Published before and after this one in the same product
- Later →CVE-2008-2719Jun 16, 2008 · Off-by-one error in the ppscan function (preproc.c) in Netwide Assembler (NASM) 2.02 allows context-dependent attackers to cause a denial…30Monitor
- Later →CVE-2017-10686Jun 29, 2017 · In Netwide Assembler (NASM) 2.14rc0, there are multiple heap use after free vulnerabilities in the tool nasm.32Monitor
- Later →CVE-2017-11111Jul 8, 2017 · In Netwide Assembler (NASM) 2.14rc0, preproc.c allows remote attackers to cause a denial of service (heap-based buffer overflow and…32Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:nasm | 0.98.38-1.1 · Debian:12 | Package registry (OSV) |
| red hat:nasm | 0:0.98.35-3.EL3 · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:nasm-debuginfo | 0:0.98.35-3.EL3 · Red Hat:enterprise_linux:3::as | Package registry (OSV) |
| red hat:nasm-doc | 0:0.98.38-3.EL4 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
| red hat:nasm-rdoff | 0:0.98.38-3.EL4 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
Exploit status
Proof of concept available
A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.
Evidence
- Exploit-DB entry ×1
Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.
| Source | Kind | Date |
|---|---|---|
| Exploit-DB entry | remote | 2004-12-15 |
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
- First PoC-26 d
- Published
- TodayNov 16, 2026+7980 d
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- C · data can be read
- Integrity
- C · data or configuration can be modified
- Availability
- C · the service can be disrupted
- Attack complexity
- Low
- Confidentiality impact
- C
- Integrity impact
- C
- Availability impact
- C
Weakness class (CWE)
CWE-787 · Out-of-bounds WriteCVSS vector
AV:N/AC:L/Au:N/C:C/I:C/A:C
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (2 more)Show less
Vendor advisories and official records. Exploit/PoC links are deliberately left out.