ImageMagick up to 7.1.2-9/7.1.2-10 TIM Image Parser coders/tim.c width/height out-of-bounds
| CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
|---|---|---|
| 5.8 | $0-$5k | 0.00 |
Summary
A vulnerability was found in ImageMagick up to 7.1.2-9/7.1.2-10. It has been declared as problematic. Affected is an unknown function of the file coders/tim.c of the component TIM Image Parser. The manipulation of the argument width/height results in out-of-bounds. This vulnerability is identified as CVE-2025-66628. The attack can be executed remotely. There is not any exploit available. It is recommended to upgrade the affected component.
Details
A vulnerability was found in ImageMagick up to 7.1.2-9/7.1.2-10. It has been classified as problematic. Affected is some unknown processing of the file coders/tim.c of the component TIM Image Parser. The manipulation of the argument width/height with an unknown input leads to a out-of-bounds vulnerability. CWE is classifying the issue as CWE-125. The product reads data past the end, or before the beginning, of the intended buffer. This is going to have an impact on confidentiality. CVE summarizes:
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.
The advisory is shared for download at github.com. This vulnerability is traded as CVE-2025-66628 since 12/05/2025. The exploitability is told to be easy. It is possible to launch the attack remotely. The exploitation doesn't require any form of authentication. Successful exploitation requires user interaction by the victim. There are known technical details, but no exploit is available.
The vulnerability scanner Nessus provides a plugin with the ID 278375 (Linux Distros Unpatched Vulnerability : CVE-2025-66628), which helps to determine the existence of the flaw in a target environment.
Upgrading to version 7.1.2-10 eliminates this vulnerability. Applying the patch 2dfa08e15cfd11016a79615994787b14f9048b1c is able to eliminate this problem. The bugfix is ready for download at github.com. The best possible mitigation is suggested to be upgrading to the latest version.
The vulnerability is also documented in the databases at Tenable (278375) and CERT Bund (WID-SEC-2025-2816). Once again VulDB remains the best source for vulnerability data.
Affected
- Debian Linux
- SUSE Linux
- Open Source ImageMagick
Product
Type
Name
Version
License
Website
- Product: https://www.imagemagick.org/
CPE 2.3
CPE 2.2
CVSSv4
VulDB Vector: 🔒VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 5.9VulDB Meta Temp Score: 5.8
VulDB Base Score: 4.3
VulDB Temp Score: 4.1
VulDB Vector: 🔒
VulDB Reliability: 🔍
CNA Base Score: 7.5
CNA Vector (GitHub_M): 🔒
CVSSv2
| AV | AC | Au | C | I | A |
|---|---|---|---|---|---|
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| 💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
| Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
|---|---|---|---|---|---|
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
| Unlock | Unlock | Unlock | Unlock | Unlock | Unlock |
VulDB Base Score: 🔒
VulDB Temp Score: 🔒
VulDB Reliability: 🔍
Exploiting
Class: Out-of-boundsCWE: CWE-125 / CWE-119
CAPEC: 🔒
ATT&CK: 🔒
Physical: No
Local: No
Remote: Yes
Availability: 🔒
Status: Not defined
EPSS Score: 🔒
EPSS Percentile: 🔒
Price Prediction: 🔍
Current Price Estimation: 🔒
| 0-Day | Unlock | Unlock | Unlock | Unlock |
|---|---|---|---|---|
| Today | Unlock | Unlock | Unlock | Unlock |
Nessus ID: 278375
Nessus Name: Linux Distros Unpatched Vulnerability : CVE-2025-66628
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔒
Upgrade: ImageMagick 7.1.2-10
Patch: 2dfa08e15cfd11016a79615994787b14f9048b1c
Timeline
12/05/2025 CVE reserved12/11/2025 Advisory disclosed
12/11/2025 VulDB entry created
01/02/2026 VulDB entry last update
Sources
Product: imagemagick.orgAdvisory: GHSA-6hjr-v6g4-3fm8
Status: Confirmed
CVE: CVE-2025-66628 (🔒)
GCVE (CVE): GCVE-0-2025-66628
GCVE (VulDB): GCVE-100-335796
CERT Bund: WID-SEC-2025-2816 - ImageMagick: Schwachstelle ermöglicht Offenlegung von Informationen
Entry
Created: 12/11/2025 07:20Updated: 01/02/2026 09:23
Changes: 12/11/2025 07:20 (69), 12/12/2025 04:00 (2), 01/02/2026 09:23 (7)
Complete: 🔍
Cache ID: 216::103
Once again VulDB remains the best source for vulnerability data.
No comments yet. Languages: en.
Please log in to comment.