CVE-2020-27771 Integer overflow in ImageMagick

Low 3.3 Published Updated

An integer overflow in ImageMagick's PDF processing allows attackers to cause a denial of service via crafted files.

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

CVE-2020-27771 is a low-severity vulnerability in Debian Debian Linux, published on 4 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 RestoreMSCWarning() of /coders/pdf.c there are several areas where calls to GetPixelIndex() could result in values outside the range of representable for the unsigned char type. The patch casts the return value of GetPixelIndex() to ssize_t type to avoid this bug. This undefined behavior could be triggered when ImageMagick processes a crafted pdf file. Red Hat Product Security marked this as Low severity because although it could potentially lead to an impact to application availability, no specific impact was demonstrated in this case. This flaw affects ImageMagick versions prior to 7.0.9-0.

Weakness: CWE-190

Which versions are affected by CVE-2020-27771?

It affects 3 products.

Products include Debian Debian Linux, Imagemagick Imagemagick, Redhat Enterprise Linux.

How do I fix CVE-2020-27771?

Upgrade to a fixed version.

Is CVE-2020-27771 being exploited?

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

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2020-27771, GHSA-33vv-cq7w-wvpr, JLSEC-2026-869, UBUNTU-CVE-2020-27771.

Is CVE-2020-27771 in your software?

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

Check your SBOMs for free