Resource Management Errors Affecting optipng package, versions [,0.6.3)


Severity

Recommended
0.0
high
0
10

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

Threat Intelligence

EPSS
0.19% (57th 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-OPTIPNG-2380449
  • published26 Jan 2022
  • disclosed2 Mar 2009
  • creditUnknown

Introduced: 2 Mar 2009

CVE-2009-0749  (opens in a new tab)
CWE-399  (opens in a new tab)

How to fix?

Upgrade optipng to version 0.6.3 or higher.

Overview

Affected versions of this package are vulnerable to Resource Management Errors. Use-after-free vulnerability in the GIFReadNextExtension function in lib/pngxtern/gif/gifread.c in OptiPNG 0.6.2 and earlier allows context-dependent attackers to cause a denial of service (application crash) via a crafted GIF image that causes the realloc function to return a new pointer, which triggers memory corruption when the old pointer is accessed.

CVSS Scores

version 3.1