CVE-2020-25666Imagemagick
Low 3.3
Follow: this CVE · Imagemagick · Imagemagick We alert you by email or Slack (account required).
- Priority
- 20
- CVSS 3.1
- 3.3
- EPSS
- 1.2% probability of exploitation in 30 days · percentile 67
- Auth required
- Yes
- Published
- Dec 8, 2020
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-190
- Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
What happens
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.
What to do
- Apply the vendor's security update for Imagemagick.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| imagemagick | imagemagick | < 6.9.10-69 |
| imagemagick | imagemagick | ≥ 7.0.0-0 < 7.0.9-0 |
| debian | debian_linux | 9.0 |
Official sources
References
Links published by the sources. Open them with care.
- bugzilla.redhat.com Exploit Issue Tracking Patch
- lists.debian.org Mailing List Third Party Advisory
- lists.debian.org