Live threats

All CVEs / Php

CVE-2016-7126Php

Critical 9.8 No auth needed

Priority
75
CVSS 3.1
9.8
EPSS
8.8%
probability of exploitation in 30 days · percentile 96
Auth required
No
Published
Sep 12, 2016
Updated
Jun 17, 2026
Category
Web application · Cross-platform
Weakness (CWE)
CWE-787
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

The imagetruecolortopalette function in ext/gd/gd.c in PHP before 5.6.25 and 7.x before 7.0.10 does not properly validate the number of colors, which allows remote attackers to cause a denial of service (select_colors allocation error and out-of-bounds write) or possibly have unspecified other impact via a large value in the third argument.

Original NVD text.

What to do

  1. Apply the vendor's security update for Php.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
phpphp7.0.0
phpphp7.0.1
phpphp7.0.2
phpphp7.0.3
phpphp7.0.4
phpphp7.0.5
phpphp7.0.6
phpphp7.0.7
phpphp7.0.8
phpphp7.0.9
phpphp≤ 5.6.24

Official sources

References

Links published by the sources. Open them with care.