{"id":"CVE-2025-57807","published":"2025-09-05T21:16:02Z","modified":"2025-11-03T18:13:45Z","title":"ImageMagick BlobStream Forward-Seek Under-Allocation","vendor":"ImageMagick","product":"ImageMagick","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":3.8,"severity":"LOW","version":"3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:L/I:L/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00304,"percentile":0.23728,"provenance":"source"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"},{"id":"CWE-122","name":"Heap-based Buffer Overflow"},{"id":"CWE-131","name":"Incorrect Calculation of Buffer Size"}],"references":[{"url":"https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-23hg-53q6-hqfg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/ImageMagick/ImageMagick/commit/077a417a19a5ea8c85559b602754a5b928eef23e","tags":["x_refsource_MISC"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/09/msg00012.html","tags":[]}],"priority":{"score":7.4,"factors":[{"name":"EPSS percentile","points":4.75},{"name":"CVSS severity","points":2.66}]},"vendorSlug":"imagemagick","affectedVersions":[{"vendor":"ImageMagick","product":"ImageMagick","versions":["< 14.8.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-09-08T13:58:41.418003Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"NuGet","package":"Magick.NET-Q16-x64","vulnerableRanges":["<14.8.2"],"patched":["14.8.2"],"from":["GHSA-23hg-53q6-hqfg"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q8-x64","vulnerableRanges":["<14.8.2"],"patched":["14.8.2"],"from":["GHSA-23hg-53q6-hqfg"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-x64","vulnerableRanges":["<14.8.2"],"patched":["14.8.2"],"from":["GHSA-23hg-53q6-hqfg"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q8-OpenMP-x64","vulnerableRanges":["<14.8.2"],"patched":["14.8.2"],"from":["GHSA-23hg-53q6-hqfg"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-OpenMP-x64","vulnerableRanges":["<14.8.2"],"patched":["14.8.2"],"from":["GHSA-23hg-53q6-hqfg"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-OpenMP-x64","vulnerableRanges":["<14.8.2"],"patched":["14.8.2"],"from":["GHSA-23hg-53q6-hqfg"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q8-arm64","vulnerableRanges":["<14.8.2"],"patched":["14.8.2"],"from":["GHSA-23hg-53q6-hqfg"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-arm64","vulnerableRanges":["<14.8.2"],"patched":["14.8.2"],"from":["GHSA-23hg-53q6-hqfg"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-OpenMP-arm64","vulnerableRanges":["<14.8.2"],"patched":["14.8.2"],"from":["GHSA-23hg-53q6-hqfg"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q8-OpenMP-arm64","vulnerableRanges":["<14.8.2"],"patched":["14.8.2"],"from":["GHSA-23hg-53q6-hqfg"],"provenance":"source"}],"euvd":{"id":"EUVD-2025-27126","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2025-53015","published":"2025-07-14","fixed":"14.7.0","kev":false},{"cve":"CVE-2025-55154","published":"2025-08-13","fixed":"14.8.0","kev":false,"link":{"from":"CVE-2025-55154","to":"CVE-2025-57807","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"NuGet:Magick.NET-Q16-x64","fromFixed":"14.8.0","toFixed":"14.8.2","daysApart":23},{"kind":"version-step","provenance":"source","package":"NuGet:Magick.NET-Q8-x64","fromFixed":"14.8.0","toFixed":"14.8.2","daysApart":23}]}},{"cve":"CVE-2025-57807","published":"2025-09-05","fixed":"14.8.2","kev":false},{"cve":"CVE-2025-68618","published":"2025-12-30","fixed":"14.10.1","kev":false,"link":{"from":"CVE-2025-57807","to":"CVE-2025-68618","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"NuGet:Magick.NET-Q16-x64","fromFixed":"14.8.2","toFixed":"14.10.1","daysApart":116},{"kind":"version-step","provenance":"source","package":"NuGet:Magick.NET-Q8-arm64","fromFixed":"14.8.2","toFixed":"14.10.1","daysApart":116}]}},{"cve":"CVE-2026-22770","published":"2026-01-20","fixed":"14.10.2","kev":false,"link":{"from":"CVE-2025-57807","to":"CVE-2026-22770","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"NuGet:Magick.NET-Q8-x64","fromFixed":"14.8.2","toFixed":"14.10.2","daysApart":137}]}},{"cve":"CVE-2026-23874","published":"2026-01-20","fixed":"14.10.2","kev":false,"link":{"from":"CVE-2025-57807","to":"CVE-2026-23874","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"NuGet:Magick.NET-Q8-x64","fromFixed":"14.8.2","toFixed":"14.10.2","daysApart":137}]}},{"cve":"CVE-2026-23952","published":"2026-01-22","fixed":"14.10.2","kev":false,"link":{"from":"CVE-2025-57807","to":"CVE-2026-23952","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"NuGet:Magick.NET-Q8-x64","fromFixed":"14.8.2","toFixed":"14.10.2","daysApart":139}]}}],"package":"NuGet:Magick.NET-Q16-x64"}}