Vulnerability · Published Sep 5, 2025 · Assigned by GitHub_M

CVE-2025-57807ImageMagick BlobStream Forward-Seek Under-Allocation

Low 3.8

In plain English

A low-severity out-of-bounds write in ImageMagick from ImageMagick. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 23% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)3.8Low
Exploit odds (30 days)0.3%top 76.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12imagemagick8:6.9.11.60+dfsg-1.6+deb12u4DEBIAN-CVE-2025-57807
Debian:12imagemagick8:6.9.11.60+dfsg-1.6+deb12u4DSA-5997-1
Debian:13imagemagick8:7.1.1.43+dfsg1-1+deb13u2DEBIAN-CVE-2025-57807
Debian:13imagemagick8:7.1.1.43+dfsg1-1+deb13u2DSA-5997-1
Debian:14imagemagick8:7.1.2.3+dfsg1-1DEBIAN-CVE-2025-57807
NuGetmagick.net-q16-arm6414.8.2GHSA-23hg-53q6-hqfg
NuGetmagick.net-q16-hdri-arm6414.8.2GHSA-23hg-53q6-hqfg
NuGetmagick.net-q16-hdri-openmp-arm6414.8.2GHSA-23hg-53q6-hqfg
NuGetmagick.net-q16-hdri-openmp-x6414.8.2GHSA-23hg-53q6-hqfg
NuGetmagick.net-q16-hdri-x6414.8.2GHSA-23hg-53q6-hqfg
NuGetmagick.net-q16-openmp-arm6414.8.2GHSA-23hg-53q6-hqfg
NuGetmagick.net-q16-openmp-x6414.8.2GHSA-23hg-53q6-hqfg
NuGetmagick.net-q16-x6414.8.2GHSA-23hg-53q6-hqfg
NuGetmagick.net-q8-arm6414.8.2GHSA-23hg-53q6-hqfg
NuGetmagick.net-q8-openmp-arm6414.8.2GHSA-23hg-53q6-hqfg
NuGetmagick.net-q8-openmp-x6414.8.2GHSA-23hg-53q6-hqfg
NuGetmagick.net-q8-x6414.8.2GHSA-23hg-53q6-hqfg

Affected products (as reported)

VendorProductVersions
ImageMagick ImageMagick < 14.8.2

Weakness: CWE-787, CWE-122, CWE-131 · Vector: CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L

References