CVE-2016-7126 Memory corruption in n/a

Critical 9.8 Published Updated

Remote attackers can cause denial of service or potentially execute code via an out-of-bounds write in the PHP GD extension's imagetruecolortopalette function.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2016-7126?

CVE-2016-7126 is a critical memory corruption vulnerability in Php Php, published on 12 Sep 2016. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-787

Which versions are affected by CVE-2016-7126?

It affects 1 product.

Products include Php Php.

How do I fix CVE-2016-7126?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2016-7126 being exploited?

There is no known exploitation of CVE-2016-7126 in the wild and no public exploit code.

All Php Php vulnerabilities

Sources

Also known as GHSA-g45g-prg5-m635.

Is CVE-2016-7126 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free