CVE-2005-3662: Off-by-one buffer overflow in pnmtopng before 2.39, when using the -alpha command line option (Alphas_Of_Color
CVE-2005-3662 is a medium-severity flaw (CVSS 4.6) affecting pnmtopng. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
Off-by-one buffer overflow in pnmtopng before 2.39, when using the -alpha command line option (Alphas_Of_Color), allows attackers to cause a denial of service (crash) and possibly execute arbitrary code via a crafted PNM file with exactly 256 colors.
Why this priority
- No elevated risk signals yet
No fix is published yet: follow the downgrade or mitigation steps.
Risk facts
| CVSS score | 4.6 (Medium) |
| EPSS exploit chance | 0.6% (top 51%) |
| CISA exploited list | No |
| Weakness | CWE-119 |
| Published | 2005-11-18 |
| Last modified | 2026-06-16 |
Last updated 2026-06-16 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2005-3662?
pnmtopng: downgrade or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2005-3662 being exploited?
CVE-2005-3662 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2005-3662 affect?
CVE-2005-3662 affects pnmtopng. Severity is medium (CVSS 4.6). Off-by-one buffer overflow in pnmtopng before 2.39, when using the -alpha command line option (Alphas_Of_Color), allows attackers to cause a denial of service (crash) and possibly execute arbitrary code via a crafted PNM file with exactly 2
How urgent is CVE-2005-3662?
Priority 28/100. No elevated risk signals yet.