CVE-2016-5688 Memory corruption in n/a

High 8.1 Published Updated

Remote attackers can trigger heap-based buffer overflows or invalid writes in ImageMagick's WPG parser when a memory limit is set, potentially leading to code execution or crashes.

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

CVE-2016-5688 is a high-severity memory corruption vulnerability in Imagemagick Imagemagick, published on 13 Dec 2016. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

The WPG parser in ImageMagick before 6.9.4-4 and 7.x before 7.0.1-5, when a memory limit is set, allows remote attackers to have unspecified impact via vectors related to the SetImageExtent return-value check, which trigger (1) a heap-based buffer overflow in the SetPixelIndex function or an invalid write operation in the (2) ScaleCharToQuantum or (3) SetPixelIndex functions.

Weakness: CWE-119

Which versions are affected by CVE-2016-5688?

It affects 2 products.

Products include Imagemagick Imagemagick, Oracle Solaris.

How do I fix CVE-2016-5688?

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

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

All Imagemagick Imagemagick vulnerabilities

Sources

Also known as ALPINE-CVE-2016-5688, DEBIAN-CVE-2016-5688, GHSA-2hhc-539m-8qw5, UBUNTU-CVE-2016-5688.

Is CVE-2016-5688 in your software?

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

Check your SBOMs for free