CVE-2009-0040
CWE-824Published: February 22, 2009· Updated: Jun 16, 2026
Official Description
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.
Technical Analysis
CVE-2009-0040 can be exploited remotely over the network without requiring physical or adjacent access, significantly expanding the attack surface for threat actors.
Exploitation requires some privileges, which limits the exposure to scenarios where an attacker has already gained initial access.
CVSS v3.1 Vector Breakdown
Affected Vendors & Products
Exploit & PoC Resources
Official Patches & Advisories
All References (164)
Quick Facts
Related CVEs (CWE-824)
Recommended Actions
- →Apply vendor patches immediately
- →Monitor CVE-2009-0040 in threat intel feeds
- →Review IDS/IPS signatures for exploitation attempts