CVE-2016-7126 Memory corruption in n/a
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.
Other vulnerabilities in Php Php
Sources
Also known as GHSA-g45g-prg5-m635.