CVE-2016-5766: Debian Linux

High severity, CVSS 8.8. EPSS: 7.5% probability of exploitation activity in the next 30 days.

Integer overflow in the _gd2GetHeader function in gd_gd2.c in the GD Graphics Library (aka libgd) before 2.2.3, as used in PHP before 5.5.37, 5.6.x before 5.6.23, and 7.x before 7.0.8, allows remote attackers to cause a denial of service (heap-based buffer overflow and application crash) or possibly have unspecified other impact via crafted chunk dimensions in an image.

What to do

No fixed version is stated in NVD's or the CNA's structured data. The description says "before 2.2.3", "before 5.5.37", "before 5.6.23"; check the vendor's advisory for the release that fixes it.

Affected products

Published 2016-08-07. Last modified 2026-06-17.