CVE-2020-25667 Memory corruption in ImageMagick

Medium 5.5 Published Updated

A crafted TIFF file triggers an out-of-bounds read in ImageMagick, causing a denial of service.

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

CVE-2020-25667 is a medium-severity memory corruption vulnerability in Imagemagick Imagemagick, 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

TIFFGetProfiles() in /coders/tiff.c calls strstr() which causes a large out-of-bounds read when it searches for `"dc:format=\"image/dng\"` within `profile` due to improper string handling, when a crafted input file is provided to ImageMagick. The patch uses a StringInfo type instead of a raw C string to remedy this. This could cause an impact to availability of the application. This flaw affects ImageMagick versions prior to 7.0.9-0.

Weakness: CWE-122

Which versions are affected by CVE-2020-25667?

It affects 1 product.

Products include Imagemagick Imagemagick.

How do I fix CVE-2020-25667?

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-2020-25667 being exploited?

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

All Imagemagick Imagemagick vulnerabilities

Sources

Also known as GHSA-3hx9-jrq9-5mh9, JLSEC-2026-844.

Is CVE-2020-25667 in your software?

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

Check your SBOMs for free