Out-of-Bounds 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
4.71% (93rd 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-2365304
  • published12 Jan 2022
  • disclosed4 Jan 2017
  • creditUnknown

Introduced: 4 Jan 2017

CVE-2016-8670  (opens in a new tab)
CWE-119  (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 Out-of-Bounds. Integer signedness error in the dynamicGetbuf function in gd_io_dp.c in the GD Graphics Library (aka libgd) through 2.2.3, as used in PHP before 5.6.28 and 7.x before 7.0.13, allows remote attackers to cause a denial of service (stack-based buffer overflow) or possibly have unspecified other impact via a crafted imagecreatefromstring call.

CVSS Scores

version 3.1