CVE-2020-25666: Integer Overflow

Published Oct 26, 2020
·
Updated

ImageMagick 7.0.8-68 there are 4 outside the range of representable values of type 'int' and a signed integer overflow at MagickCore/histogram.c.

Reference: https://github.com/ImageMagick/ImageMagick/issues/1750

Upstream patch: https://github.com/ImageMagick/ImageMagick/commit/94691f00839dbdf43edb1508af945ab19b388573

Other sources

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 ssizet 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.

Launchpad

Affected Software

5 affected componentsFixes available
redhat/ImageMagick 7.0.9<0
0
ImageMagick ImageMagick<6.9.10-69
ImageMagick ImageMagick>=7.0.0-0<7.0.9-0
Debian Debian Linux=9.0
debian/imagemagick
8:6.9.11.60+dfsg-1.3+deb11u48:6.9.11.60+dfsg-1.3+deb11u38:6.9.11.60+dfsg-1.6+deb12u28:6.9.11.60+dfsg-1.6+deb12u18:7.1.1.43+dfsg1-18:7.1.1.47+dfsg1-1

Event History

Dec 8, 2020
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Jan 11, 2024
Data Sourced
via Launchpad·11:46 PM
Description
Oct 19, 2024
Data Sourced
via Ubuntu·09:19 AM
RemedyDescriptionSeverityAffected Software
Apr 2, 2025
Data Sourced
via Debian·11:43 PM
DescriptionAffected Software

Frequently Asked Questions

1

What is CVE-2020-25666?

CVE-2020-25666 is a vulnerability in ImageMagick, specifically in the HistogramCompare() function in MagickCore/histogram.c.

2

How severe is CVE-2020-25666?

CVE-2020-25666 has a severity score of 3.3, which is considered medium.

3

What is the affected software and versions for CVE-2020-25666?

The affected software is ImageMagick, and the vulnerable versions are 8:6.9.7.4+dfsg-16ubuntu6.11, 8:6.9.10.23+dfsg-2.1ubuntu11.4, 8:6.9.10.23+dfsg-2.1ubuntu13.3, and 8:6.9.11.24+dfsg-1.

4

How can I fix CVE-2020-25666?

To fix CVE-2020-25666, update ImageMagick to versions 8:6.9.7.4+dfsg-16ubuntu6.11, 8:6.9.10.23+dfsg-2.1ubuntu11.4, 8:6.9.10.23+dfsg-2.1ubuntu13.3, or 8:6.9.11.24+dfsg-1.

5

Where can I find more information about CVE-2020-25666?

You can find more information about CVE-2020-25666 at the following references: [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-25666), [Ubuntu Security Notices](https://ubuntu.com/security/notices/USN-4988-1), and [NVD](https://nvd.nist.gov/vuln/detail/CVE-2020-25666).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203