Description
Buffer overflow in libpng 1.0.x before 1.0.55, 1.2.x before 1.2.45, 1.4.x before 1.4.8, and 1.5.x before 1.5.4, when used by an application that calls the png_rgb_to_gray function but not the png_set_expand function, allows remote attackers to overwrite memory with an arbitrary amount of data, and possibly have unspecified other impact, via a crafted PNG image.
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 6.0 | libpng | 1.2.44-1+squeeze1 | DSA-2287-1 |
| Debian 5.0 | libpng | 1.2.27-2+lenny5 | DSA-2287-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 6 | libpng +2 | 2:1.2.46-1.el6_1 | RHSA-2011:1105 |
| RHEL 5 | libpng +1 | 2:1.2.10-7.1.el5_7.5 | RHSA-2011:1104 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | libpng16 | 1.6.26-1.1 | openSUSE-SU-2024:10050-1 |
Advisories 4
- RHSA-2011:1104 Red Hat Security Advisory: libpng security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- RHSA-2011:1105 Red Hat Security Advisory: libpng security update Red Hat Security Advisories (RHSA) · Jun 26, 2026
- DSA-2287-1 libpng - several vulnerabilities Debian Security (DSA / DLA) · Mar 9, 2026
- openSUSE-SU-2024:10050-1 libpng16-16-1.6.26-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
References
- 49660 third-party-advisory
- 48660 vdb-entry
- 45046 third-party-advisory
- USN-1175-1 vendor-advisory
- MDVSA-2011:151 vendor-advisory
- GLSA-201206-15 vendor-advisory
- 45461 third-party-advisory
- http://www.libpng.org/pub/png/libpng.html
- FEDORA-2011-9336 vendor-advisory
- DSA-2287 vendor-advisory
- APPLE-SA-2011-10-12-3 vendor-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=720607
- 45405 third-party-advisory
- RHSA-2011:1105 vendor-advisory
- 45460 third-party-advisory
- [oss-security] 20110713 Security issues fixed in libpng 1.5.4 mailing-list
- http://support.apple.com/kb/HT5002
- libpng-pngrgbtogray-bo(68538) vdb-entry
- 45492 third-party-advisory
- RHSA-2011:1104 vendor-advisory
- 45415 third-party-advisory