Home / Libpng / Libpng / CVE-2009-0040
CVE-2009-0040: is it exploited, and which versions of Libpng are affected and fixed?
CVE-2009-0040 is an uninitialized pointer access vulnerability in Libpng. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 09:08 UTC). Affected: libpng before 1.0.43, libpng from 1.2.0 before 1.2.35, iphone os before 3.0 and 12 more (NVD). Fixed in 1.0.43, 1.2.35, 3.0 and 10.5.8 (NVD). Severity: Medium (6.8, CVSS 2.0, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 09:08 UTC, CVE record November 19, 2026, 07:20 UTC and NVD November 19, 2026, 08:51 UTC.
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.
From the CVE record by redhat, last updated August 7, 2024, 04:17 UTC.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| libpng | libpng | before 1.0.43 | application |
| libpng | libpng | from 1.2.0 before 1.2.35 | application |
| apple | iphone os | before 3.0 | operating system |
| apple | mac os x | before 10.5.8 | operating system |
| opensuse | opensuse | 10.3 | operating system |
| opensuse | opensuse | 11.0 | operating system |
| opensuse | opensuse | 11.1 | operating system |
| suse | linux enterprise | 9.0 | operating system |
| suse | linux enterprise | 10.0 | operating system |
| suse | linux enterprise desktop | 10 | operating system |
| suse | linux enterprise server | 10 | operating system |
| debian | debian linux | 4.0 | operating system |
| debian | debian linux | 5.0 | operating system |
| fedoraproject | fedora | 9 | operating system |
| fedoraproject | fedora | 10 | operating system |
NVD analysis (status Modified), last modified June 16, 2026, 23:04 UTC.
How severe is CVE-2009-0040?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 6.8 | CVSS 2.0 | AV:N/AC:M/Au:N/C:P/I:P/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2009-0040 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 4.83% probability of exploitation activity in the next 30 days, percentile 92.2 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-824 Access of Uninitialized Pointer
Where are the vendor advisories and references?
- RHSA-2009:0315 vendor-advisory, x_refsource_REDHAT
- SUSE-SA:2009:023 vendor-advisory, x_refsource_SUSE
- http://support.apple.com/kb/HT3757 x_refsource_CONFIRM
- SUSE-SA:2009:012 vendor-advisory, x_refsource_SUSE
- GLSA-200903-28 vendor-advisory, x_refsource_GENTOO
- RHSA-2009:0333 vendor-advisory, x_refsource_REDHAT
- http://support.apple.com/kb/HT3639 x_refsource_CONFIRM
- 35386 third-party-advisory, x_refsource_SECUNIA
- GLSA-201209-25 vendor-advisory, x_refsource_GENTOO
- DSA-1830 vendor-advisory, x_refsource_DEBIAN
- ADV-2009-0632 vdb-entry, x_refsource_VUPEN
- ADV-2009-1621 vdb-entry, x_refsource_VUPEN
- RHSA-2009:0340 vendor-advisory, x_refsource_REDHAT
- 1020521 vendor-advisory, x_refsource_SUNALERT
- http://support.apple.com/kb/HT3549 x_refsource_CONFIRM
- ADV-2009-1560 vdb-entry, x_refsource_VUPEN
- oval:org.mitre.oval:def:10316 vdb-entry, signature, x_refsource_OVAL
- ADV-2009-0469 vdb-entry, x_refsource_VUPEN
- 34388 third-party-advisory, x_refsource_SECUNIA
- ADV-2009-1462 vdb-entry, x_refsource_VUPEN
- SSA:2009-083-02 vendor-advisory, x_refsource_SLACKWARE
- APPLE-SA-2009-06-08-1 vendor-advisory, x_refsource_APPLE
- 36096 third-party-advisory, x_refsource_SECUNIA
- [png-mng-implement] 20090219 libpng-1.2.35 and libpng-1.0.43 fix security vulnerability mailing-list, x_refsource_MLIST
- http://www.vmware.com/security/advisories/VMSA-2009-0007.html x_refsource_CONFIRM
- RHSA-2009:0325 vendor-advisory, x_refsource_REDHAT
- 259989 vendor-advisory, x_refsource_SUNALERT
- 35302 third-party-advisory, x_refsource_SECUNIA
- 33976 third-party-advisory, x_refsource_SECUNIA
- 35074 third-party-advisory, x_refsource_SECUNIA
- libpng-pointer-arrays-code-execution(48819) vdb-entry, x_refsource_XF
- ADV-2009-1522 vdb-entry, x_refsource_VUPEN
- 34140 third-party-advisory, x_refsource_SECUNIA
- ADV-2009-1451 vdb-entry, x_refsource_VUPEN
- APPLE-SA-2009-06-17-1 vendor-advisory, x_refsource_APPLE
- FEDORA-2009-2045 vendor-advisory, x_refsource_FEDORA
- APPLE-SA-2009-05-12 vendor-advisory, x_refsource_APPLE
- SUSE-SR:2009:005 vendor-advisory, x_refsource_SUSE
- MDVSA-2009:083 vendor-advisory, x_refsource_MANDRIVA
- 34464 third-party-advisory, x_refsource_SECUNIA
- 34272 third-party-advisory, x_refsource_SECUNIA
- 34210 third-party-advisory, x_refsource_SECUNIA
- ftp://ftp.simplesystems.org/pub/png/src/libpng-1.2.34-ADVISORY.txt x_refsource_CONFIRM
- APPLE-SA-2009-08-05-1 vendor-advisory, x_refsource_APPLE
- oval:org.mitre.oval:def:6458 vdb-entry, signature, x_refsource_OVAL
- 34265 third-party-advisory, x_refsource_SECUNIA
- http://wiki.rpath.com/Advisories:rPSA-2009-0046 x_refsource_CONFIRM
- 34145 third-party-advisory, x_refsource_SECUNIA
- 20090529 VMSA-2009-0007 VMware Hosted products and ESX and ESXi patches resolve security issues mailing-list, x_refsource_BUGTRAQ
- 35379 third-party-advisory, x_refsource_SECUNIA
- ADV-2009-0473 vdb-entry, x_refsource_VUPEN
- 20090821 VMSA-2009-0010 VMware Hosted products update libpng and Apache HTTP Server mailing-list, x_refsource_BUGTRAQ
- 34143 third-party-advisory, x_refsource_SECUNIA
- FEDORA-2009-2882 vendor-advisory, x_refsource_FEDORA
- DSA-1750 vendor-advisory, x_refsource_DEBIAN
- FEDORA-2009-2884 vendor-advisory, x_refsource_FEDORA
- SSA:2009-083-03 vendor-advisory, x_refsource_SLACKWARE
- 33970 third-party-advisory, x_refsource_SECUNIA
- 34137 third-party-advisory, x_refsource_SECUNIA
- TA09-133A third-party-advisory, x_refsource_CERT
When was it published, and where is the official record?
- Reserved
- December 15, 2008
- Published
- February 22, 2009, 22:00 UTC
- CVE record updated
- August 7, 2024, 04:17 UTC by redhat
- NVD
- Modified, last modified June 16, 2026, 23:04 UTC
- Last checked
- CVE list November 19, 2026, 07:20 UTC; NVD November 19, 2026, 08:51 UTC; KEV December 3, 2026, 09:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Libpng?
- Jan 27, 2026CVE-2025-28164 Libpng: memory leak
- Jan 27, 2026CVE-2025-28162 Libpng: buffer overflow
- Aug 24, 2022CVE-2021-4214 libpng: buffer overflow
- Jul 10, 2019CVE-2017-12652 Libpng: improper input validation
- Jul 10, 2019CVE-2018-14550 Libpng: out-of-bounds write (memory corruption)
- Feb 4, 2019CVE-2019-7317 Libpng: use after free
- Jan 11, 2019CVE-2019-6129 Libpng: memory leak disputed
- Jul 13, 2018CVE-2018-14048 Libpng: n/a
Questions about CVE-2009-0040
Is CVE-2009-0040 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 09:08 UTC. FIRST's EPSS gives it a 4.83% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Libpng are affected by CVE-2009-0040?
libpng before 1.0.43, libpng from 1.2.0 before 1.2.35, iphone os before 3.0, mac os x before 10.5.8, opensuse 10.3, opensuse 11.0 and 9 more, per the NVD. The tables above give every range the sources list.
Which version fixes CVE-2009-0040?
1.0.43, 1.2.35, 3.0 and 10.5.8, per the NVD. Check the vendor's advisory before you rely on it.
How severe is CVE-2009-0040?
Medium (6.8, CVSS 2.0, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2009-0040?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.