SecurityContext

CVE-2025-66628: ImageMagick - Integer Overflow

  • Cve: CVE-2025-66628
  • Name: ImageMagick - Integer Overflow
  • Description: ImageMagick is a software suite to create, edit, compose, or convert bitmap images. In versions 7.1.2-9 and prior, the TIM (PSX TIM) image parser contains a critical integer overflow vulnerability in its ReadTIMImage function (coders/tim.c). The code reads width and height (16-bit values) from the file header and calculates image_size = 2 * width * height without checking for overflow. On 32-bit systems (or where size_t is 32-bit), this calculation can overflow if width and height are large (e.g., 65535), wrapping around to a small value. This results in a small heap allocation via AcquireQuantumMemory and later operations relying on the dimensions can trigger an out of bounds read. This issue is fixed in version 7.1.2-10.
  • Impact: Attackers can cause out-of-bounds reads leading to potential crashes or information disclosure.
  • Remediation: Update to version 7.1.2-10 or later.
  • Vulnerability type: integer_overflow
  • Vulnerability impact: information_disclosure, denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
  • Epss score: 0.00551
  • Epss percentile: 0.46981
  • Assignee: [email protected]
  • Published at: 2025-12-10T22:16:28Z
  • Age in days: 349
  • Modified at: 2026-09-25T23:10:00Z
  • Patch available: yes
  • Public exploits total: 1
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 2
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2025-66628
  • Nvd status: analyzed
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-125Out-of-bounds Read

Public exploits

UrlSourceAdded date
https://github.com/Sumitshah00/CVE-2025-66628poc-in-github2025-12-11

References

UrlSourceTags
https://github.com/dlemstra/Magick.NET/commit/2dfa08e15cfd11016a79615994787b14f9048b1cnvdPatch
https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-6hjr-v6g4-3fm8nvdVendor Advisory

Products

ProductAffectedPlatform boundSourcesUrl
imagemagick:imagemagick< 7.1.2-10nonvd/v1/products/imagemagick/imagemagick

Projects

RepositoryLink kindsIndexedUrl
ImageMagick/ImageMagickpackage, security_advisoryyes/v1/repositories/ImageMagick/ImageMagick
dlemstra/Magick.NETcommityes/v1/repositories/dlemstra/Magick.NET

Index

  • Repositories: 13
  • Repositories high signal: 10
  • Packages: 1

Exploitation

  • Public exploit: yes
  • Public exploit count: 1
  • Public exploit first date: 2025-12-11
  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports, exposed hosts