CVE-2021-20224
ImageMagick: integer overflow in ExportIndexQuantum() in MagickCore/quantum-export.c
Overview
Description
An integer overflow issue was discovered in ImageMagick's ExportIndexQuantum() function in MagickCore/quantum-export.c. Function calls to GetPixelIndex() could result in values outside the range of representable for the 'unsigned char'. When ImageMagick processes a crafted pdf file, this could lead to an undefined behaviour or a crash.
Source: OX vulnerability database
Severity
5.5 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Weakness: CWE-190
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Julia | ImageMagick_jll | <6.9.12+0 | 6.9.12+0 |
Open a package to see all its vulnerabilities.
Operating systems · 20 fixes
Red Hat 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | imagemagick +5 | eol |
SUSE Linux Enterprise 1 release · 1 package
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 12.5 | imagemagick +9 | 6.8.8.1-71.180.1 | SUSE-SU-2022:3138-1 |
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | imagemagick | 7.0.10.57-r0 |
| 3.23 | imagemagick | 7.0.10.57-r0 |
| 3.24 | imagemagick | 7.0.10.57-r0 |
| edge | imagemagick | 7.0.10.57-r0 |
debian 5 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 10 | imagemagick | 8:6.9.10.23+dfsg-2.1+deb10u2 |
| 11 | imagemagick | 8:6.9.11.57+dfsg-1 |
| 12 | imagemagick | 8:6.9.11.57+dfsg-1 |
| 13 | imagemagick | 8:6.9.11.57+dfsg-1 |
| 14 | imagemagick | 8:6.9.11.57+dfsg-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| imagemagick | 8:6.9.11.57+dfsg-1 |
root.io debian 3 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 11 | rootio-imagemagick | 8:6.9.11.57+dfsg-1 |
| 12 | rootio-imagemagick | 8:6.9.11.57+dfsg-1 |
| 13 | rootio-imagemagick | 8:6.9.11.57+dfsg-1 |
seal Red Hat 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | imagemagick +1 | 6.9.10.68-6.el7_9+sp999 |
ubuntu 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 18.04 | imagemagick | 8:6.9.7.4+dfsg-16ubuntu6.14 |
| 18.04-ESM | imagemagick | 8:6.9.7.4+dfsg-16ubuntu6.14 |
| 20.04 | imagemagick | 8:6.9.10.23+dfsg-2.1ubuntu11.9 |
| 20.04-ESM | imagemagick | 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2021-20224
- github.com https://github.com/ImageMagick/ImageMagick/commit/5af1dffa4b6ab984b5f13d1e91c95760d75f12a6
- github.com https://github.com/ImageMagick/ImageMagick/pull/3083
- github.com https://github.com/ImageMagick/ImageMagick6/commit/553054c1cb1e4e05ec86237afef76a32cd7c464d
- lists.debian.org https://lists.debian.org/debian-lts-announce/2023/03/msg00008.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2021-20224
- ubuntu.com https://ubuntu.com/security/notices/USN-5736-1
- ubuntu.com https://ubuntu.com/security/notices/USN-5736-2
- ubuntu.com https://ubuntu.com/security/notices/USN-6200-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2021-20224
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.