CVE-2009-0040

CVE-2009-0040 is a medium-severity vulnerability in Libpng with a CVSS 2.0 base score of 6.8. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-824.

Key facts

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.

Frequently asked questions

What is CVE-2009-0040?
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.
How severe is CVE-2009-0040?
CVE-2009-0040 has a CVSS 2.0 base score of 6.8, rated medium severity.
Is CVE-2009-0040 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 5% (91st percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2009-0040?
CVE-2009-0040 primarily affects Libpng. In total, 14 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
How do I fix CVE-2009-0040?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround.
When was CVE-2009-0040 published?
CVE-2009-0040 was published on 2009-02-22 and last updated on 2026-06-16.

References

Affected products (14)

More vulnerabilities in Libpng

All CVEs affecting Libpng →

Other CWE-824 vulnerabilities

Browse all CWE-824 vulnerabilities →