Advisory Database
  • Advisories
  • Dependency Scanning
  1. nuget
  2. ›
  3. Magick.NET-Q8-arm64
  4. ›
  5. CVE-2025-57807

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

September 5, 2025

For memory-backed blobs (BlobStream), SeekBlob() permits advancing the stream offset beyond the current end without increasing capacity. The subsequent WriteBlob() 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.


References

  • github.com/ImageMagick/ImageMagick
  • github.com/ImageMagick/ImageMagick/commit/077a417a19a5ea8c85559b602754a5b928eef23e
  • github.com/ImageMagick/ImageMagick/security/advisories/GHSA-23hg-53q6-hqfg
  • github.com/advisories/GHSA-23hg-53q6-hqfg
  • nvd.nist.gov/vuln/detail/CVE-2025-57807

Code Behaviors & Features

Detect and mitigate CVE-2025-57807 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 14.8.2

Fixed versions

  • 14.8.2

Solution

Upgrade to version 14.8.2 or above.

Impact 3.8 LOW

CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L

Learn more about CVSS

Weakness

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

Source file

nuget/Magick.NET-Q8-arm64/CVE-2025-57807.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Mon, 08 Sep 2025 00:20:02 +0000.