Integer Overflow or Wraparound Affecting libgd/libgd package, versions [,2.2.4)


Severity

Recommended
0.0
critical
0
10

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

Threat Intelligence

EPSS
1.03% (85th 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-LIBGDLIBGD-2365313
  • published12 Jan 2022
  • disclosed28 Sept 2016
  • creditUnknown

Introduced: 28 Sep 2016

CVE-2016-7568  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade libgd/libgd to version 2.2.4 or higher.

Overview

Affected versions of this package are vulnerable to Integer Overflow or Wraparound. Integer overflow in the gdImageWebpCtx function in gd_webp.c in the GD Graphics Library (aka libgd) through 2.2.3, as used in PHP through 7.0.11, allows remote attackers to cause a denial of service (heap-based buffer overflow) or possibly have unspecified other impact via crafted imagewebp and imagedestroy calls.

CVSS Scores

version 3.1