{"id":"CVE-2020-25666","aliases":["CVE-2020-25666"],"related":[],"kind":"vulnerability","state":"published","title":"There are 4 places in HistogramCompare() in MagickCore/histogram.c where an integer overflow is possible during simple math calculations.","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"Existen 4 ubicaciones en la función HistogramCompare() en el archivo MagickCore/histogram.c, donde es posible un desbordamiento de enteros durante cálculos matemáticos simples.&#xa0;Esto ocurre en los valores rgb y en el valor \"count\" de un color.&#xa0;El parche usa conversiones del tipo \"ssize_t\" para estos cálculos, en lugar de \"int\".&#xa0;Este fallo podría afectar la confiabilidad de la aplicación en caso de que ImageMagick procese un archivo de entrada diseñado.&#xa0;Este fallo afecta a ImageMagick versiones anteriores a 7.0.9-0","source":"nvd"}],"published":"2020-12-08T00:00:00.000Z","modified":"2026-06-17T03:07:05.383Z","severity":{"scorer":"NVD","scheme":"CVSS: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,"rating":"LOW"},"severities":[{"scorer":"NVD","scheme":"CVSS: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,"rating":"LOW"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:N/I:N/A:P","score":4.3,"rating":"MEDIUM"}],"cwes":["CWE-190"],"affected":[{"ranges":[{"version":"prior to 7.0.9-0","status":"affected"}],"product":"ImageMagick","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"6.9.10-69"},{"status":"affected","introduced":"7.0.0-0","fixed":"7.0.9-0"}],"vendor":"imagemagick","product":"imagemagick","cpe":"cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"9.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1891612","tags":["exploit","issue-tracking","patch","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/03/msg00030.html","tags":["mailing-list","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/03/msg00008.html","tags":["mailing-list","x-transferred"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"redhat","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2020-25666","url":"https://www.cve.org/CVERecord?id=CVE-2020-25666","licence":"CVE Terms of Use","modified":"2024-08-04T15:40:36.313Z"},{"source":"nvd","name":"NVD","id":"CVE-2020-25666","url":"https://nvd.nist.gov/vuln/detail/CVE-2020-25666","licence":"Public domain","modified":"2026-06-17T03:07:05.383Z"}],"updatedAt":"2026-11-25T22:57:56.078Z","epss":{"score":0.01177,"percentile":0.6847,"date":"2026-12-01T12:00:22.000Z"}}