CVE-2020-27754 Integer overflow in ImageMagick

Low 3.3 Published Updated

An integer overflow in ImageMagick's pixel intensity comparison allows attackers to cause denial of service or potentially execute code via crafted images.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2020-27754?

CVE-2020-27754 is a low-severity vulnerability in Debian Debian Linux, published on 8 Dec 2020. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

In IntensityCompare() of /magick/quantize.c, there are calls to PixelPacketIntensity() which could return overflowed values to the caller when ImageMagick processes a crafted input file. To mitigate this, the patch introduces and uses the ConstrainPixelIntensity() function, which forces the pixel intensities to be within the proper bounds in the event of an overflow. This flaw affects ImageMagick versions prior to 6.9.10-69 and 7.0.8-69.

Weakness: CWE-190

Which versions are affected by CVE-2020-27754?

It affects 2 products.

Products include Debian Debian Linux, Imagemagick Imagemagick.

How do I fix CVE-2020-27754?

Apply the vendor's patch.

Is CVE-2020-27754 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2020-27754, GHSA-568w-cwq2-w5pj, JLSEC-2026-852, UBUNTU-CVE-2020-27754.

Is CVE-2020-27754 in your software?

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

Check your SBOMs for free