CVE-2020-25676 Integer overflow in ImageMagick
An attacker can cause denial of service or undefined behavior in ImageMagick by supplying a crafted image file that triggers integer overflows in pixel interpolation functions.
- 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-25676?
CVE-2020-25676 is a medium-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 CatromWeights(), MeshInterpolate(), InterpolatePixelChannel(), InterpolatePixelChannels(), and InterpolatePixelInfo(), which are all functions in /MagickCore/pixel.c, there were multiple unconstrained pixel offset calculations which were being used with the floor() function. These calculations produced undefined behavior in the form of out-of-range and integer overflows, as identified by UndefinedBehaviorSanitizer. These instances of undefined behavior could be triggered by an attacker who is able to supply a crafted input file to be processed by ImageMagick. These issues could impact application availability or potentially cause other problems related to undefined behavior. This flaw affects ImageMagick versions prior to 7.0.9-0.
Weakness: CWE-190
Which versions are affected by CVE-2020-25676?
It affects 2 products.
Products include Debian Debian Linux, Imagemagick Imagemagick.
How do I fix CVE-2020-25676?
Upgrade to a fixed version.
Is CVE-2020-25676 being exploited?
There is no known exploitation of CVE-2020-25676 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as DEBIAN-CVE-2020-25676, GHSA-cpwv-crhw-cf7v, JLSEC-2026-847, UBUNTU-CVE-2020-25676.