Integer Overflow and Out-of-Range Vulnerability in ImageMagick's CropImage() and CropImageToTiles() Routines

Integer Overflow and Out-of-Range Vulnerability in ImageMagick's CropImage() and CropImageToTiles() Routines

CVE-2020-25675 · LOW Severity

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

In the CropImage() and CropImageToTiles() routines of MagickCore/transform.c, rounding calculations performed on unconstrained pixel offsets was causing undefined behavior in the form of integer overflow and out-of-range values as reported by UndefinedBehaviorSanitizer. Such issues could cause a negative impact to application availability or other problems related to undefined behavior, in cases where ImageMagick processes untrusted input data. The upstream patch introduces functionality to constrain the pixel offsets and prevent these issues. This flaw affects ImageMagick versions prior to 7.0.9-0.

Learn more about our Web Application Penetration Testing UK.