CVE-2020-25663 Use after free in ImageMagick
A use-after-free vulnerability in ImageMagick allows attackers to cause a denial of service via malicious image 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-25663?
CVE-2020-25663 is a medium-severity use after free 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
A call to ConformPixelInfo() in the SetImageAlphaChannel() routine of /MagickCore/channel.c caused a subsequent heap-use-after-free or heap-buffer-overflow READ when GetPixelRed() or GetPixelBlue() was called. This could occur if an attacker is able to submit a malicious image file to be processed by ImageMagick and could lead to denial of service. It likely would not lead to anything further because the memory is used as pixel data and not e.g. a function pointer. This flaw affects ImageMagick versions prior to 7.0.9-0.
Weakness: CWE-416
Which versions are affected by CVE-2020-25663?
It affects 1 product.
Products include Imagemagick Imagemagick.
How do I fix CVE-2020-25663?
Upgrade to a fixed version.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2020-25663 being exploited?
There is no known exploitation of CVE-2020-25663 in the wild and no public exploit code.
Other vulnerabilities in Imagemagick Imagemagick
Sources
Also known as GHSA-h549-4pw3-34x9, JLSEC-2026-840.