Integer overflow in Imagemagick
CVE-2020-27771
In RestoreMSCWarning() of /coders/pdf.c there are several areas where calls to GetPixelIndex() could result in values outside the range of representable for the unsigned char type. The patch casts the return value of GetPixelIndex() to ssize_t type to avoid this bug. This undefined behavior could be triggered when ImageMagick processes a crafted pdf file. Red Hat Product Security marked this as Low severity because although it could potentially lead to an impact to application availability, no specific impact was demonstrated in this case. This flaw affects ImageMagick versions prior to 7.0.9-0.
Vulnerability class: Integer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 3.3 (Low). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L.
EPSS exploit prediction
EPSS 0.012, 68.1th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Imagemagick
- Debian Linux — versions 9.0
- Red Hat Enterprise Linux — versions 5.0, 6.0, 7.0
- Imagemagick — versions ImageMagick 7.0.9-0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 2 other repositories (0xCyberY/CVE-T4PDF, ARPSyndicate/cvemon). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- bugzilla.redhat.com/show_bug.cgi (Exploit, Patch, Third Party Advisory, Issue Tracking)
- [debian-lts-announce] 20210323 [SECURITY] [DLA 2602-1] imagemagick security update (mailing-list, Mailing List, Third Party Advisory)
- [debian-lts-announce] 20230311 [SECURITY] [DLA 3357-1] imagemagick security update (mailing-list)