CVE-2020-25666

Summary

CVECVE-2020-25666
StatePUBLIC
Assigner[email protected]
Source PriorityCVE Program / NVD first with legacy fallback
Published2020-12-08 21:15:00 UTC
Updated2023-03-11 23:15:00 UTC
DescriptionThere are 4 places in HistogramCompare() in MagickCore/histogram.c where an integer overflow is possible during simple math calculations. This occurs in the rgb values and `count` value for a color. The patch uses casts to `ssize_t` type for these calculations, instead of `int`. This flaw could impact application reliability in the event that ImageMagick processes a crafted input file. This flaw affects ImageMagick versions prior to 7.0.9-0.

Risk And Classification

Problem Types: CWE-190

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Debian Debian Linux 9.0 All All All
Application Imagemagick Imagemagick All All All All
Application Imagemagick Imagemagick All All All All

References

ReferenceSourceLinkTags
1891612 – (CVE-2020-25666) CVE-2020-25666 ImageMagick: outside the range of representable values of type int and signed integer overflow in MagickCore/histogram.c MISC bugzilla.redhat.com Exploit, Issue Tracking, Patch, Third Party Advisory
[SECURITY] [DLA 2602-1] imagemagick security update MLIST lists.debian.org
[SECURITY] [DLA 3357-1] imagemagick security update MLIST lists.debian.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Legacy QID Mappings

  • 178502 Debian Security Update for imagemagick (DLA 2602-1)
  • 181625 Debian Security Update for imagemagick (DLA 3357-1)
  • 198406 Ubuntu Security Notification for ImageMagick vulnerabilities (USN-4988-1)
  • 671560 EulerOS Security Update for ImageMagick (EulerOS-SA-2022-1536)
  • 671612 EulerOS Security Update for ImageMagick (EulerOS-SA-2022-1570)
  • 671705 EulerOS Security Update for ImageMagick (EulerOS-SA-2022-1731)
  • 750398 OpenSUSE Security Update for ImageMagick (openSUSE-SU-2021:0148-1)
  • 750404 OpenSUSE Security Update for ImageMagick (openSUSE-SU-2021:0136-1)
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

CVE.report and Source URL Uptime Status status.cve.report