CVE-2016-3981: Heap-based buffer overflow in the bmp_read_rows function in pngxrbmp.c in OptiPNG before 0.7.6 allows remote a
CVE-2016-3981 is a high-severity flaw (CVSS 7.8) affecting optipng, ubuntu linux, debian linux. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
Heap-based buffer overflow in the bmp_read_rows function in pngxrbmp.c in OptiPNG before 0.7.6 allows remote attackers to cause a denial of service (out-of-bounds read or write access and crash) or possibly execute arbitrary code via a crafted image file.
Why this priority
- High severity
- EPSS top 9%: very likely to be exploited
- Public exploit reference
- On your watchlist
A fixed release or distro patch exists.
Risk facts
| CVSS score | 7.8 (High) |
| Attack vector | Local |
| Attack complexity | Low |
| Privileges needed | None |
| User interaction | Required |
| EPSS exploit chance | 4.4% (top 9%) |
| CISA exploited list | No |
| Weakness | CWE-119 |
| Published | 2016-04-13 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · 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-2016-3981?
optipng: upgrade to newer than 0.7.5; ubuntu linux: mitigate or apply the listed mitigation; debian linux: mitigate or apply the listed mitigation. Exact commands for each OS are on this page.
Is CVE-2016-3981 being exploited?
CVE-2016-3981 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-2016-3981 affect?
CVE-2016-3981 affects optipng, ubuntu linux, debian linux. Severity is high (CVSS 7.8). Heap-based buffer overflow in the bmp_read_rows function in pngxrbmp.c in OptiPNG before 0.7.6 allows remote attackers to cause a denial of service (out-of-bounds read or write access and crash) or possibly execute arbitrary code via a craf
How urgent is CVE-2016-3981?
Priority 60/100. High severity; EPSS top 9%: very likely to be exploited; Public exploit reference; On your watchlist
Software pages
Ubuntu vulnerabilities · Debian vulnerabilities
Related CVEs
- CVE-2023-43907 HIGH 7.8 DOWNGRADE OptiPNG v0.7.7 was discovered to contain a global buffer overflow via the 'buffer' variable at gifread.c.
- CVE-2017-16938 HIGH 7.8 DOWNGRADE A global buffer overflow in OptiPNG 0.7.6 allows remote attackers to cause a denial-of-service attack or other
- CVE-2017-1000229 HIGH 7.8 DOWNGRADE MITIGATE Integer overflow bug in function minitiff_read_info() of optipng 0.7.6 allows an attacker to remotely execute
- CVE-2016-3982 HIGH 8.8 MITIGATE MITIGATE Off-by-one error in the bmp_rle4_fread function in pngxrbmp.c in OptiPNG before 0.7.6 allows remote attackers
- CVE-2016-2191 MEDIUM 6.5 DOWNGRADE MITIGATE The bmp_read_rows function in pngxtern/pngxrbmp.c in OptiPNG before 0.7.6 allows remote attackers to cause a d