Vulnerabilities · 2009 · Libpng
CVE-2009-0040
Libpng vulnerability
The PNG reference library (aka libpng) before 1.0.43, and 1.2.x before 1.2.35, as used in pngcrush and other applications, allows context-dependent attackers to cause a denial of service (application crash) or possibly execute arbitrary code via a crafted PNG file that triggers a free of an uninitialized pointer in (1) the png_read_png function, (2) pCAL chunk handling, or (3) setup of 16-bit gamma tables.
Affected products
Libpng, Iphone Os, Mac Os X, Opensuse, Linux Enterprise, Linux Enterprise Desktop, Linux Enterprise Server, Debian Linux, Fedora. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Libpng runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- secunia.com/advisories/33970 · Vendor Advisory
- secunia.com/advisories/33976 · Vendor Advisory
- security.gentoo.org/glsa/glsa-200903-28.xml · Third Party Advisory
- security.gentoo.org/glsa/glsa-201209-25.xml · Third Party Advisory
- support.apple.com/kb/HT3549 · Third Party Advisory
- support.apple.com/kb/HT3613 · Third Party Advisory
- support.apple.com/kb/HT3639 · Third Party Advisory
- support.apple.com/kb/HT3757 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2009-0040
- cve.org/CVERecord?id=CVE-2009-0040
More vulnerabilities in Libpng products
CVE-2026-22801CVE-2026-22695CVE-2025-66293CVE-2025-65018CVE-2025-64720CVE-2025-64506CVE-2025-64505CVE-2025-28164All 54
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.