CVE-2021-20224 Integer overflow in ImageMagick

Medium 5.5 Published Updated

An integer overflow in ImageMagick allows attackers to cause a crash or undefined behavior via a crafted PDF file.

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-2021-20224?

CVE-2021-20224 is a medium-severity vulnerability in Imagemagick Imagemagick, published on 25 Aug 2022. 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

An integer overflow issue was discovered in ImageMagick's ExportIndexQuantum() function in MagickCore/quantum-export.c. Function calls to GetPixelIndex() could result in values outside the range of representable for the 'unsigned char'. When ImageMagick processes a crafted pdf file, this could lead to an undefined behaviour or a crash.

Weakness: CWE-190

Which versions are affected by CVE-2021-20224?

It affects 1 product.

Linux distribution packages (4)
ImageMagick SUSE:Linux Enterprise Server 12 SP5All versions6.8.8.1-71.180.1
ImageMagick SUSE:Linux Enterprise Server for SAP Applications 12 SP5All versions6.8.8.1-71.180.1
ImageMagick SUSE:Linux Enterprise Software Development Kit 12 SP5All versions6.8.8.1-71.180.1
ImageMagick SUSE:Linux Enterprise Workstation Extension 12 SP5All versions6.8.8.1-71.180.1

Products include Imagemagick Imagemagick.

How do I fix CVE-2021-20224?

Apply the vendor's patch.

Is CVE-2021-20224 being exploited?

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

All Imagemagick Imagemagick vulnerabilities

Sources

Also known as CLSA-2022-1670518357, DEBIAN-CVE-2021-20224, GHSA-ccpc-2gr7-q87w, JLSEC-2026-878, SUSE-SU-2022:3138-1, UBUNTU-CVE-2021-20224.

Is CVE-2021-20224 in your software?

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

Check your SBOMs for free