CVE-2020-25675 Integer overflow in ImageMagick
Attackers can cause denial of service or undefined behavior in ImageMagick by providing crafted images that trigger integer overflows in cropping routines.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2020-25675?
CVE-2020-25675 is a low-severity vulnerability in Debian Debian Linux, published on 8 Dec 2020. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official description
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.
Weakness: CWE-190
Which versions are affected by CVE-2020-25675?
It affects 2 products.
Products include Debian Debian Linux, Imagemagick Imagemagick.
How do I fix CVE-2020-25675?
Upgrade to a fixed version.
Is CVE-2020-25675 being exploited?
There is no known exploitation of CVE-2020-25675 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as DEBIAN-CVE-2020-25675, GHSA-f8m8-mp6m-fp5q, JLSEC-2026-846, UBUNTU-CVE-2020-25675.