Out-of-bounds Read Affecting libpng package, versions [1.0.0,1.0.55)[1.2.0,1.2.45)[1.4.0,1.4.8)[1.5.0,1.5.4)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.77% (82nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-LIBPNG-2334973
  • published12 Jan 2022
  • disclosed17 Jul 2011
  • creditUnknown

Introduced: 17 Jul 2011

CVE-2011-2501  (opens in a new tab)
CWE-125  (opens in a new tab)

How to fix?

Upgrade libpng to version 1.0.55, 1.2.45, 1.4.8, 1.5.4 or higher.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Read. The png_format_buffer function in pngerror.c in libpng 1.0.x before 1.0.55, 1.2.x before 1.2.45, 1.4.x before 1.4.8, and 1.5.x before 1.5.4 allows remote attackers to cause a denial of service (application crash) via a crafted PNG image that triggers an out-of-bounds read during the copying of error-message data. NOTE: this vulnerability exists because of a CVE-2004-0421 regression. NOTE: this is called an off-by-one error by some sources.

References

CVSS Scores

version 3.1