CVE-2025-57807
ImageMagick BlobStream Forward-Seek Under-Allocation
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.
How to fix CVE-2025-57807
To remediate CVE-2025-57807, upgrade the affected package to a fixed version below.
- —upgrade to 8:6.9.11.60+dfsg-1.3+deb11u6 or later
- —upgrade to 14.8.2 or later
- —upgrade to 14.8.2 or later
- —upgrade to 14.8.2 or later
- —upgrade to 14.8.2 or later
- —upgrade to 14.8.2 or later
- —upgrade to 14.8.2 or later
- —upgrade to 14.8.2 or later
- —upgrade to 14.8.2 or later
- —upgrade to 14.8.2 or later
- —upgrade to 14.8.2 or later
- —upgrade to 14.8.2 or later
- —upgrade to 14.8.2 or later
Is CVE-2025-57807 being exploited?
Low — EPSS is 0.1%, meaning exploitation activity has not been observed at scale.
Affected packages (13)
- from 0, < 8:6.9.11.60+dfsg-1.3+deb11u6
- from 0, < 14.8.2
- from 0, < 14.8.2
- from 0, < 14.8.2
- from 0, < 14.8.2
- from 0, < 14.8.2
- from 0, < 14.8.2
- from 0, < 14.8.2
- from 0, < 14.8.2
- from 0, < 14.8.2
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | LOW3.8 | CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L |