CVE-2008-5907Libpng
Medium 5.0 No auth needed
Follow: this CVE · Libpng · Libpng We alert you by email or Slack (account required).
- Priority
- 45
- CVSS 2.0
- 5.0
- EPSS
- 2.6% probability of exploitation in 30 days · percentile 86
- Auth required
- No
- Published
- Jan 15, 2009
- Updated
- Jun 16, 2026
- Category
- Application · Cross-platform
- Vector
AV:N/AC:L/Au:N/C:N/I:P/A:N
What happens
The png_check_keyword function in pngwutil.c in libpng before 1.0.42, and 1.2.x before 1.2.34, might allow context-dependent attackers to set the value of an arbitrary memory location to zero via vectors involving creation of crafted PNG files with keywords, related to an implicit cast of the '\0' character constant to a NULL pointer. NOTE: some sources incorrectly report this as a double free vulnerability.
What to do
- Apply the vendor's security update for Libpng.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| libpng | libpng | < 1.0.42 |
| libpng | libpng | ≥ 1.2.0 < 1.2.34 |
| debian | debian_linux | 4.0 |
| debian | debian_linux | 5.0 |
Official sources
References
Links published by the sources. Open them with care.
- libpng.sourceforge.net Third Party Advisory
- lists.opensuse.org Third Party Advisory
- openwall.com Mailing List Third Party Advisory
- secunia.com Third Party Advisory
- secunia.com Third Party Advisory
- security.gentoo.org Third Party Advisory
- sourceforge.net Third Party Advisory
- www.debian.org Third Party Advisory
- www.mandriva.com Third Party Advisory
- exchange.xforce.ibmcloud.com Third Party Advisory VDB Entry