CVE-2015-8472: Buffer Overflow
Buffer overflow in libpng allows remote attackers to cause a denial of service
Other sources
Buffer overflow in the pngsetPLTE function in libpng before 1.0.65, 1.1.x and 1.2.x before 1.2.55, 1.3.x, 1.4.x before 1.4.18, 1.5.x before 1.5.25, and 1.6.x before 1.6.20 allows remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact via a small bit-depth value in an IHDR (aka image header) chunk in a PNG image. NOTE: this vulnerability exists because of an incomplete fix for CVE-2015-8126.
It was discovered that the pnggetPLTE() and pngsetPLTE() functions of libpng did not correctly calculate the maximum palette sizes for bit depths of less than 8. In case an application tried to use these functions in combination with properly calculated palette sizes, this could lead to a buffer overflow or out-of-bounds reads. An attacker could exploit this to cause a crash or potentially execute arbitrary code by tricking an unsuspecting user into processing a specially crafted PNG image. However, the exact impact is dependent on the application using the library.
Affected Software
Event History
Parent advisories
This vulnerability appears in the following advisories.
Frequently Asked Questions
What is the severity of CVE-2015-8472?
CVE-2015-8472 has a severity rating of moderate due to its potential to cause application crashes and denial of service.
What types of attacks can exploit CVE-2015-8472?
CVE-2015-8472 can be exploited by remote attackers to trigger a buffer overflow, leading to application crashes or other unspecified impacts.
How do I fix CVE-2015-8472?
To fix CVE-2015-8472, upgrade to a version of libpng that is patched, specifically to version 1.0.65 or later, 1.2.55 or later, or the appropriate version listed by your software vendor.
Which software versions are affected by CVE-2015-8472?
CVE-2015-8472 affects various versions of libpng prior to 1.0.65, 1.1.x, 1.2.x before 1.2.55, and several other versions detailed in the vulnerability report.
What are the potential impacts of CVE-2015-8472?
The potential impacts of CVE-2015-8472 include application crashes and denial of service, which can affect the availability of services relying on the vulnerable software.