CVE Database›CVE-2016-5766

CVE-2016-5766

gd: Integer overflow in _gd2GetHeader() resulting in heap overflow

Loading…

Severity

Moderate

Red Hat Product Security

5.6

CVSS 3.0

Review impact separately from score.

Published · June 23, 2016

Updated · June 28, 2026

Description

An integer overflow flaw, leading to a heap-based buffer overflow was found in the imagecreatefromgd2() function of PHP's gd extension. A remote attacker could use this flaw to crash a PHP application or execute arbitrary code with the privileges of the user running that PHP application using gd via a specially crafted GD2 image.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.0 · 5.6
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L

CVSS 2.0 · 5.1
AV:N/AC:H/Au:N/C:P/I:P/A:P

CWE-190 · Integer Overflow or Wraparound