{"id":"JLSEC-2026-843","details":"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.","modified":"2026-07-30T18:23:53.788152914Z","published":"2026-07-30T16:02:27.435Z","upstream":["CVE-2020-25666"],"database_specific":{"license":"CC-BY-4.0","sources":[{"imported":"2026-07-30T14:08:42.232Z","modified":"2026-06-17T03:07:05.383Z","published":"2020-12-08T21:15:12.623Z","url":"https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2020-25666","html_url":"https://nvd.nist.gov/vuln/detail/CVE-2020-25666","database_specific":{"status":"Modified"},"id":"CVE-2020-25666"}]},"references":[{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1891612"},{"type":"WEB","url":"https://bugzilla.redhat.com/show_bug.cgi?id=1891612"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2021/03/msg00030.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2021/03/msg00030.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2023/03/msg00008.html"},{"type":"WEB","url":"https://lists.debian.org/debian-lts-announce/2023/03/msg00008.html"}],"affected":[{"package":{"name":"ImageMagick_jll","ecosystem":"Julia","purl":"pkg:julia/ImageMagick_jll?uuid=c73af94c-d91f-53ed-93a7-00f77d67a9d7"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"6.9.12+0"}]}],"database_specific":{"source":"https://github.com/JuliaLang/SecurityAdvisories.jl/tree/generated/osv/2026/JLSEC-2026-843.json"}}],"schema_version":"1.8.0","severity":[{"type":"CVSS_V2","score":"AV:N/AC:M/Au:N/C:N/I:N/A:P"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L"}]}