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
- Severity: Medium (CVSS 2.0 base score 6.8)
- EPSS exploit prediction: 5% (91st percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-824
- Affected product: Libpng
- Published:
- Last modified:
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
- ftp://ftp.simplesystems.org/pub/png/src/libpng-1.2.34-ADVISORY.txt
- http://downloads.sourceforge.net/libpng/libpng-1.2.34-ADVISORY.txt
- http://lists.apple.com/archives/security-announce/2009/Aug/msg00001.html
- http://lists.apple.com/archives/security-announce/2009/Jun/msg00005.html
- http://lists.apple.com/archives/security-announce/2009/May/msg00002.html
- http://lists.apple.com/archives/security-announce/2009/jun/msg00002.html
- http://lists.opensuse.org/opensuse-security-announce/2009-03/msg00000.html
- http://lists.opensuse.org/opensuse-security-announce/2009-03/msg00002.html
- http://lists.opensuse.org/opensuse-security-announce/2009-04/msg00009.html
- http://lists.vmware.com/pipermail/security-announce/2009/000062.html
- http://secunia.com/advisories/33970
- http://secunia.com/advisories/33976
- http://secunia.com/advisories/34137
- http://secunia.com/advisories/34140
- http://secunia.com/advisories/34143
- http://secunia.com/advisories/34145
- http://secunia.com/advisories/34152
- http://secunia.com/advisories/34210
- http://secunia.com/advisories/34265
- http://secunia.com/advisories/34272
- http://secunia.com/advisories/34320
- http://secunia.com/advisories/34324
- http://secunia.com/advisories/34388
- http://secunia.com/advisories/34462
- http://secunia.com/advisories/34464
- http://secunia.com/advisories/35074
- http://secunia.com/advisories/35258
- http://secunia.com/advisories/35302
- http://secunia.com/advisories/35379
- http://secunia.com/advisories/35386
Affected products (14)
- cpe:2.3:a:libpng:libpng:*:*:*:*:*:*:*:*
- cpe:2.3:o:apple:iphone_os:*:*:*:*:*:*:*:*
- cpe:2.3:o:apple:mac_os_x:*:*:*:*:*:*:*:*
- cpe:2.3:o:opensuse:opensuse:10.3:*:*:*:*:*:*:*
- cpe:2.3:o:opensuse:opensuse:11.0:*:*:*:*:*:*:*
- cpe:2.3:o:opensuse:opensuse:11.1:*:*:*:*:*:*:*
- cpe:2.3:o:suse:linux_enterprise:9.0:-:*:*:*:*:*:*
- cpe:2.3:o:suse:linux_enterprise:10.0:-:*:*:*:*:*:*
- cpe:2.3:o:suse:linux_enterprise_desktop:10:sp2:*:*:*:*:*:*
- cpe:2.3:o:suse:linux_enterprise_server:10:sp2:*:*:*:*:*:*
- cpe:2.3:o:debian:debian_linux:4.0:*:*:*:*:*:*:*
- cpe:2.3:o:debian:debian_linux:5.0:*:*:*:*:*:*:*
- cpe:2.3:o:fedoraproject:fedora:9:*:*:*:*:*:*:*
- cpe:2.3:o:fedoraproject:fedora:10:*:*:*:*:*:*:*
More vulnerabilities in Libpng
- CVE-2017-12652 — Critical (CVSS 9.8): libpng before 1.6.32 does not properly check the length of chunks against the user limit.
- CVE-2010-1205 — Critical (CVSS 9.8): Buffer overflow in pngpread.c in libpng before 1.2.44 and 1.4.x before 1.4.3, as used in progressive applications,…
- CVE-2018-14550 — High (CVSS 8.8): An issue has been found in third-party PNM decoding associated with libpng 1.6.35. It is a stack-based buffer overflow…
- CVE-2015-8540 — High (CVSS 8.8): Integer underflow in the png_check_keyword function in pngwutil.c in libpng 0.90 through 0.99, 1.0.x before 1.0.66,…
- CVE-2015-0973 — High (CVSS 8.8): Buffer overflow in the png_read_IDAT_data function in pngrutil.c in libpng before 1.5.21 and 1.6.x before 1.6.16 allows…
- CVE-2014-9495 — High (CVSS 8.8): Heap-based buffer overflow in the png_combine_row function in libpng before 1.5.21 and 1.6.x before 1.6.16, when…
Other CWE-824 vulnerabilities
- CVE-2009-0846 — Critical (CVSS 10.0): The asn1_decode_generaltime function in lib/krb5/asn.1/asn1_decode.c in the ASN.1 GeneralizedTime decoder in MIT…
- CVE-2007-2442 — Critical (CVSS 10.0): The gssrpc__svcauth_gssapi function in the RPC library in MIT Kerberos 5 (krb5) 1.6.1 and earlier might allow remote…
- CVE-2026-2805 — Critical (CVSS 9.8): Invalid pointer in the DOM: Core & HTML component. This vulnerability was fixed in Firefox 148 and Thunderbird 148.
- CVE-2026-2785 — Critical (CVSS 9.8): Invalid pointer in the JavaScript Engine component. This vulnerability was fixed in Firefox 148, Firefox ESR 140.8,…
- CVE-2022-46280 — Critical (CVSS 9.8): A use of uninitialized pointer vulnerability exists in the PQS format pFormat functionality of Open Babel 3.1.1 and…
- CVE-2022-44451 — Critical (CVSS 9.8): A use of uninitialized pointer vulnerability exists in the MSI format atom functionality of Open Babel 3.1.1 and master…