What’s Vulnerable › Vulnerabilities
CVE-2020-25663
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 1.1% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2020-12-08 · updated 2026-06-17
- Weakness: CWE-416
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.
Affected products
- ImageMagick: before 7.0.8-56 — fixed in 7.0.8-56
How to fix
Upgrade to a fixed version: ImageMagick 7.0.8-56. Check the vendor advisory for mitigations.
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1891601
- https://github.com/ImageMagick/ImageMagick/issues/1723
- https://github.com/ImageMagick/ImageMagick/issues/1723#issuecomment-718275153
- https://bugzilla.redhat.com/show_bug.cgi?id=1891601
- https://github.com/ImageMagick/ImageMagick/issues/1723
- https://github.com/ImageMagick/ImageMagick/issues/1723#issuecomment-718275153
Get alerted when CVE-2020-25663 or the next vulnerability affects your stack