VDB
Sign up
MEDIUM5.1

GHSA-26qp-ffjh-2x4v

ImageMagick has an integer overflow in despeckle operation causing a heap buffer overflow on 32-bit builds

Quick fix

GHSA-26qp-ffjh-2x4v — Magick.NET-Q16-AnyCPU: upgrade to the fixed version with the command below.

dotnet add package Magick.NET-Q16-AnyCPU --version 14.12.0

Details

An integer overflow in the despeckle operation causes a heap buffer overflow on 32-bit builds that will result in an out of bounds write.

``` ==1551685==ERROR: AddressSanitizer: heap-buffer-overflow on address 0xea2fb818 at pc 0x56cbc42a bp 0xffc4ce48 sp 0xffc4ce38 WRITE of size 8 at 0xea2fb818 thread T0 ```

Are you affected?

Enter the version of the package you're using.

Affected packages

NuGet/Magick.NET-Q16-AnyCPU
Introduced in: 0Fixed in: 14.12.0
Fixdotnet add package Magick.NET-Q16-AnyCPU --version 14.12.0
NuGet/Magick.NET-Q16-HDRI-AnyCPU
Introduced in: 0Fixed in: 14.12.0
Fixdotnet add package Magick.NET-Q16-HDRI-AnyCPU --version 14.12.0
NuGet/Magick.NET-Q16-HDRI-x86
Introduced in: 0Fixed in: 14.12.0
Fixdotnet add package Magick.NET-Q16-HDRI-x86 --version 14.12.0
NuGet/Magick.NET-Q16-x86
Introduced in: 0Fixed in: 14.12.0
Fixdotnet add package Magick.NET-Q16-x86 --version 14.12.0
NuGet/Magick.NET-Q8-AnyCPU
Introduced in: 0Fixed in: 14.12.0
Fixdotnet add package Magick.NET-Q8-AnyCPU --version 14.12.0
NuGet/Magick.NET-Q8-x86
Introduced in: 0Fixed in: 14.12.0
Fixdotnet add package Magick.NET-Q8-x86 --version 14.12.0

References