CVE-2025-57807 Details
Description
ImageMagick is free and open-source software used for editing and manipulating digital images. ImageMagick versions lower than 14.8.2 include insecure functions: SeekBlob(), which permits advancing the stream offset beyond the current end without increasing capacity, and WriteBlob(), which then expands by quantum + length (amortized) instead of offset + length, and copies to data + offset. When offset ≫ extent, the copy targets memory beyond the allocation, producing a deterministic heap write on 64-bit builds. No 2⁶⁴ arithmetic wrap, external delegates, or policy settings are required. This is fixed in version 14.8.2.
A heap out-of-bounds write vulnerability has been identified in ImageMagick versions prior to 14.8.2. The issue arises within the Blob I/O component, specifically in the 'BlobStream' type. The vulnerability is caused by the 'SeekBlob()' function, which allows the stream offset to be advanced beyond the current end without increasing the blob's capacity. Consequently, the 'WriteBlob()' function expands the blob's extent incorrectly, leading to a deterministic heap write on 64-bit builds. This vulnerability does not require integer wraparound, external delegates, or special policy settings to be exploited.
Users should update to ImageMagick version 14.8.2 or later, where this vulnerability has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Sep 8, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-23hg-53q6-hqfg | CISA-ADP | ExploitMitigationVendor Advisory |
| https://lists.debian.org/debian-lts-announce/2025/09/msg00012.html | CVE | |
| https://github.com/ImageMagick/ImageMagick/commit/077a417a19a5ea8c85559b602754a5b928eef23e | [email protected] | Patch |
| https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-23hg-53q6-hqfg | [email protected] | ExploitMitigationVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-122 | Heap-based Buffer Overflow | [email protected] |
| CWE-131 | Incorrect Calculation of Buffer Size | [email protected] |
| CWE-787 | Out-of-bounds Write | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| imagemagick imagemagick | < 6.9.13-29 >= 7.0.0-0, < 7.1.2-3 |
CPE
Remediation
| |
Change History
7 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 19, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Nov 3, 2025 | CVE Modified | CVE |
| Sep 10, 2025 | Initial Analysis | [email protected] |
| Sep 8, 2025 | CVE Modified | CISA-ADP |
| Sep 5, 2025 | New CVE Received | [email protected] |