CVE-2020-27761: Integer Overflow
In ImageMagick, there are three outside the range of representable values of type 'unsigned long' at coders/palm.c.
Reference: https://github.com/ImageMagick/ImageMagick/issues/1726
Upstream patch: https://github.com/ImageMagick/ImageMagick/commit/db5e12e24f1378ce8c93a5c35991dcdd23a67bb0
Other sources
WritePALMImage() in /coders/palm.c used sizet casts in several areas of a calculation which could lead to values outside the range of representable type unsigned long undefined behavior when a crafted input file was processed by ImageMagick. The patch casts to ssizet instead to avoid this issue. Red Hat Product Security marked the Severity as Low because although it could potentially lead to an impact to application availability, no specific impact was shown in this case. This flaw affects ImageMagick versions prior to ImageMagick 7.0.9-0.
— Launchpad
Affected Software
Remediation
Patch Available
Event History
Frequently Asked Questions
What is CVE-2020-27761?
CVE-2020-27761 is a vulnerability in the WritePALMImage() function of ImageMagick that could lead to undefined behavior when processing a crafted input file.
What is the severity of CVE-2020-27761?
The severity of CVE-2020-27761 is medium, with a severity score of 3.3.
Which software is affected by CVE-2020-27761?
ImageMagick versions 6.9.7.4 to 6.9.10-69 and 7.0.0-0 to 7.0.9-0 are affected. Ubuntu versions 18.04 LTS (bionic), 20.04 LTS (focal), and 20.10 (groovy) with the appropriate ImageMagick packages installed are also affected. Debian versions 9.0 (stretch) and 10 (buster) with ImageMagick packages installed are affected as well. Red Hat with ImageMagick 7.0.9 packages installed is also affected.
How can I fix CVE-2020-27761 on Ubuntu?
On Ubuntu, you can fix CVE-2020-27761 by updating ImageMagick to version 8:6.9.7.4+dfsg-16ubuntu6.11 (for bionic), 8:6.9.10.23+dfsg-2.1ubuntu11.4 (for focal), or 8:6.9.10.23+dfsg-2.1ubuntu13.3 (for groovy).
How can I fix CVE-2020-27761 on Debian?
On Debian, you can fix CVE-2020-27761 by updating ImageMagick to version 8:6.9.10.23+dfsg-2.1+deb10u5, 8:6.9.11.60+dfsg-1.3+deb11u1, or 8:6.9.11.60+dfsg-1.6.