CVE-2016-7127 Memory corruption in n/a

Critical 9.8 Published Updated

Remote attackers can trigger an out-of-bounds write in the PHP GD extension's imagegammacorrect function, causing denial of service or potential code execution.

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-7127?

CVE-2016-7127 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 imagegammacorrect function in ext/gd/gd.c in PHP before 5.6.25 and 7.x before 7.0.10 does not properly validate gamma values, which allows remote attackers to cause a denial of service (out-of-bounds write) or possibly have unspecified other impact by providing different signs for the second and third arguments.

Weakness: CWE-787

Which versions are affected by CVE-2016-7127?

It affects 1 product.

Products include Php Php.

How do I fix CVE-2016-7127?

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-7127 being exploited?

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

All Php Php vulnerabilities

Sources

Also known as GHSA-75cj-4w7q-6p82, UBUNTU-CVE-2016-7127.

Is CVE-2016-7127 in your software?

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

Check your SBOMs for free