ImageMagick BlobStream Forward-Seek Under-Allocation
ImageMagick
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Magick.NET-Q16-x64 NuGet |
|
|
| Magick.NET-Q8-x64 NuGet |
|
|
| Magick.NET-Q16-HDRI-x64 NuGet |
ImageMagick
| Product | Affected | Fixed in |
|---|---|---|
| Magick.NET-Q16-x64 NuGet |
|
|
| Magick.NET-Q8-x64 NuGet |
|
|
| Magick.NET-Q16-HDRI-x64 NuGet |
< 14.8.2
|
| Magick.NET-Q8-OpenMP-x64 NuGet |
|
|
| Magick.NET-Q16-HDRI-OpenMP-x64 NuGet |
|
|
| Magick.NET-Q16-OpenMP-x64 NuGet |
|
|
| Magick.NET-Q8-arm64 NuGet |
|
|
| Magick.NET-Q16-arm64 NuGet |
|
|
| Magick.NET-Q16-OpenMP-arm64 NuGet |
|
|
| Magick.NET-Q8-OpenMP-arm64 NuGet |
|
|
| Magick.NET-Q16-HDRI-OpenMP-arm64 NuGet |
|
|
| Magick.NET-Q16-HDRI-arm64 NuGet |
|
|
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.
From the CVE record · GitHub_M
In versions below 14.8.2, SeekBlob() can move a stream offset beyond its allocated capacity, and a subsequent WriteBlob() can write beyond the heap allocation on 64-bit builds. An attacker who can trigger that sequence could cause an out-of-bounds write; the input does not specify network or local access, authentication requirements, or user interaction.
Engineers using the listed NuGet Magick.NET packages at versions below 14.8.2 should check their deployments.