CVE-2025-57807

ImageMagick BlobStream Forward-Seek Under-Allocation

State
Published
Severity
3.8 Low
Published
Sep 5, 2025
Updated
Nov 3, 2025
Reserved
Aug 20, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.13.8 LowCVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:LGitHub_M

Weaknesses

  • CWE-787 Out-of-bounds Write
  • CWE-122 Heap-based Buffer Overflow
  • CWE-131 Incorrect Calculation of Buffer Size

Affected Products

ProductVersions
ImageMagickImageMagick
  • < 14.8.2Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.