Buffer overflow in Php

CVE-2016-7126

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.

Vulnerability class: Buffer Overflow

EPSS: 0.088 (94.6th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Affected products

  • Php — versions 7.0.0, 7.0.1, 7.0.2
  • N/a — versions n/a

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2016-7126?
CVE-2016-7126 is a critical-severity vulnerability in Php, classified under Out-of-bounds Write. CVSS score: 9.8/10. Published 2016-09-12.
How severe is CVE-2016-7126?
Critical severity. CVSS v3 base score is 9.8 out of 10.