SecurityContext

CVE-2020-25666: ImageMagick - Integer Overflow

  • Cve: CVE-2020-25666
  • Name: ImageMagick - Integer Overflow
  • 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.
  • Impact: Potential application crash or instability when processing crafted input files, affecting reliability.
  • Remediation: Update to version 7.0.9-0 or later.
  • Vulnerability type: integer_overflow
  • Vulnerability impact: denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: low
  • Cvss score: 3.3
  • Cvss vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
  • Epss score: 0.01177
  • Epss percentile: 0.68401
  • Assignee: [email protected]
  • Published at: 2020-12-08T21:15:12Z
  • Age in days: 2177
  • Modified at: 2026-06-17T03:07:05Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 3
  • Products total: 2
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2020-25666
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-190Integer Overflow or Wraparound

Public exploits

UrlSourceAdded date
https://bugzilla.redhat.com/show_bug.cgi?id=1891612nvd2020-12-08

References

Same in every row:

  • Source: nvd
UrlTags
https://bugzilla.redhat.com/show_bug.cgi?id=1891612Exploit, Issue Tracking, Patch, Third Party Advisory
https://lists.debian.org/debian-lts-announce/2021/03/msg00030.htmlMailing List, Third Party Advisory
https://lists.debian.org/debian-lts-announce/2023/03/msg00008.html

Products

ProductAffectedPlatform boundSourcesUrl
imagemagick:imagemagick< 6.9.10-69; >= 7.0.0-0, < 7.0.9-0nonvd/v1/products/imagemagick/imagemagick
debian:debian_linux= 9.0nonvd/v1/products/debian/debian_linux

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2020-12-08
  • Exposed hosts: 4739835
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, remote, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports