CVE-2020-27761Integer Overflow or Wraparound in Imagemagick

Severity
3.3LOWNVD
EPSS
0.1%
top 68.02%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedDec 3
Latest updateOct 15

Description

WritePALMImage() in /coders/palm.c used size_t 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 `ssize_t` 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

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:LExploitability: 1.8 | Impact: 1.4

Affected Packages4 packages

debiandebian/imagemagick< imagemagick 8:6.9.11.24+dfsg-1 (bookworm)
NVDimagemagick/imagemagick7.0.0-07.0.9-0+1
Debianimagemagick/imagemagick< 8:6.9.11.24+dfsg-1+3
CVEListV5imagemagick/imagemagickImageMagick 7.0.9-0

Also affects: Debian Linux 9.0

Patches

🔴Vulnerability Details

2
GHSA
GHSA-7vpm-rrmr-qfh6: WritePALMImage() in /coders/palm2022-05-24
OSV
CVE-2020-27761: WritePALMImage() in /coders/palm2020-12-03

📋Vendor Advisories

4
Ubuntu
ImageMagick vulnerabilities2024-10-15
Ubuntu
ImageMagick vulnerabilities2021-06-15
Debian
CVE-2020-27761: imagemagick - WritePALMImage() in /coders/palm.c used size_t casts in several areas of a calcu...2020
Red Hat
ImageMagick: outside the range of representable values of type 'unsigned long' at coders/palm.c2019-10-07

💬Community

1
Bugzilla
CVE-2020-27761 ImageMagick: outside the range of representable values of type 'unsigned long' at coders/palm.c2020-11-04