{"cve":"CVE-2020-25666","nvd":{"published":"2020-12-08T21:15:12.623","modified":"2026-06-17T03:07:05.383","status":"Modified","description":"There 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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L","score":3.3},"cwes":["CWE-190"],"references":["https://bugzilla.redhat.com/show_bug.cgi?id=1891612","https://lists.debian.org/debian-lts-announce/2021/03/msg00030.html","https://lists.debian.org/debian-lts-announce/2023/03/msg00008.html","https://bugzilla.redhat.com/show_bug.cgi?id=1891612","https://lists.debian.org/debian-lts-announce/2021/03/msg00030.html"],"products":["debian:debian_linux","imagemagick:imagemagick"],"source":"nvd","synced_at":"2026-10-19T21:11:20.317016139+00:00"},"epss":{"cve":"CVE-2020-25666","score":0.01177,"percentile":0.67606,"date":"2026-10-31"},"kev":null,"osv":[],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}