Description
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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | optipng | 0.7.6-1 | — |
| Debian 13 | optipng | 0.7.6-1 | — |
| Debian 12 | optipng | 0.7.6-1 | — |
| Debian 8 | optipng | 0.7.5-1+deb8u1 | DSA-3546-1 |
| Debian 7 | optipng | 0.6.4-1+deb7u2 | DSA-3546-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 14.04 LTS | optipng | 0.6.4-1ubuntu0.14.04.1 | USN-2951-1 |
Advisories 2
- DSA-3546-1 optipng - security update Debian Security (DSA / DLA) · Mar 9, 2026
- USN-2951-1 optipng vulnerabilities Ubuntu Security Notices (USN) · Feb 10, 2026
References
- http://bugs.fi/media/afl/optipng/1/
- https://sourceforge.net/p/optipng/bugs/56/
- openSUSE-SU-2016:1082 vendor-advisory
- DSA-3546 vendor-advisory
- USN-2951-1 vendor-advisory
- openSUSE-SU-2016:1078 vendor-advisory
- GLSA-201608-01 vendor-advisory