CVE-2016-7126

CRITICALCVSS 9.8/10EPSS 8.82%

Last modified

CVE-2016-7126 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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.. EPSS estimates a 8.82% chance of exploitation in the next 30 days.

Description

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.

Metrics

CVSS 3.1
9.8/10

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS Probability
8.82%

94.5th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

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

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is 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.
How severe is CVE-2016-7126?
CVE-2016-7126 has a CVSS score of 9.8/10 (CRITICAL severity). The EPSS model estimates a 8.82% probability of exploitation in the next 30 days.
How do I fix CVE-2016-7126?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2016-7126?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST