CVE-2025-66628CWE-125

CVE-2025-66628

High · published December 11, 2025

CVSS v3.1
7.5
EPSS
1%
Percentile
42.6
In the wild
Unconfirmed
What it is

⚡ An integer overflow in ImageMagick could lead to unexpected behavior! If you're running versions prior to 7.1.2-10, you might want to check your image processing pipeline. 🔍 Think of it like trying to fit a gigantic painting into a tiny frame without measuring it first — the dimensions don’t match, and you end up with a messy overflow! 🎨 If an attacker sends a specially crafted TIM image, it can cause a heap memory allocation issue, paving the way for potential out-of-bounds reads. This could lead to application crashes or unpredictable behavior, putting your entire image processing workflow at risk! Yikes! 😱

Put simply

Think of it like trying to fit a gigantic painting into a tiny frame without measuring it first — the dimensions don’t match, and you end up with a messy overflow! 🎨 This vulnerability arises from the ReadTIMImage function in ImageMagick's TIM image parser, where it fails to check for overflow when calculating image size based on width and height, leading to memory mismanagement.

What to do

If an attacker sends a specially crafted TIM image, it can cause a heap memory allocation issue, paving the way for potential out-of-bounds reads. This could lead to application crashes or unpredictable behavior, putting your entire image processing workflow at risk! Yikes! 😱 Upgrade to ImageMagick version 7.1.2-10 or later immediately. Ensure to validate all image inputs and consider running security tests to catch any other possible vulnerabilities. 🛡️ Don't worry, you've got this! Just follow the steps, and you'll have your environment secured in no time! 🚀

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS v4.0
Not supplied
EPSS
0.00510 · 42.6th percentile
Weakness
CWE-125 · Out-of-bounds Read
Published
2025-12-11T03:16Z
Affected products (1)
ProductVersionsFixed in
imagemagick/imagemagick< 7.1.2-107.1.2-10
References (2)
EPSS history
Timeline
  • 10 DEC 22:04Z
    ImageMagick is vulnerable to an Integer Overflow in TIM decoder leading to out of bounds read (32-bit only)
    cvelistv5