CVE-2021-20245
A flaw was found in ImageMagick in coders/webp.c. An attacker who submits a crafted file that is...
A flaw was found in ImageMagick in coders/webp.c. An attacker who submits a crafted file that is processed by ImageMagick could trigger undefined behavior in the form of math division by zero. The highest threat from this vulnerability is to system availability.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- None
- User interaction
- Required
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
5.5
A flaw was found in ImageMagick in coders/webp.c. An attacker who submits a crafted file that is processed by ImageMagick could trigger undefined behavior in the form of math division by zero. The highest threat from this vulnerability is to system availability.
- Record
CVE-2021-20245- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - CVSS 2.0
- 7.1 High
AV:N/AC:M/Au:N/C:N/I:N/A:C - Weakness
- CWE-369
- Updated
- 2026-11-02
CVE List No score
A flaw was found in ImageMagick in coders/webp.c. An attacker who submits a crafted file that is processed by ImageMagick could trigger undefined behavior in the form of math division by zero. The highest threat from this vulnerability is to system availability.
- Record
CVE-2021-20245- Weakness
- CWE-369
- Updated
- 2026-11-02
EUVDEUVD-2021-7684 No score
A flaw was found in ImageMagick in coders/webp.c. An attacker who submits a crafted file that is processed by ImageMagick could trigger undefined behavior in the form of math division by zero. The highest threat from this vulnerability is to system availability.
- Record
EUVD-2021-7684- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-pwcp-7wg2-65jc
5.5
A flaw was found in ImageMagick in coders/webp.c. An attacker who submits a crafted file that is...
A flaw was found in ImageMagick in coders/webp.c. An attacker who submits a crafted file that is processed by ImageMagick could trigger undefined behavior in the form of math division by zero. The highest threat from this vulnerability is to system availability.
- Record
GHSA-pwcp-7wg2-65jc- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Weakness
- CWE-369
- Updated
- 2026-11-02
OSVALPINE-CVE-2021-20245
5.5
A flaw was found in ImageMagick in coders/webp.c. An attacker who submits a crafted file that is processed by ImageMagick could trigger undefined behavior in the form of math division by zero. The highest threat from this vulnerability is to system availability.
- Record
ALPINE-CVE-2021-20245- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-03
OSV
5.5
A flaw was found in ImageMagick in coders/webp.c. An attacker who submits a crafted file that is processed by ImageMagick could trigger undefined behavior in the form of math division by zero. The highest threat from this vulnerability is to system availability.
- Record
CVE-2021-20245- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
Show 5 moreShow less
OSVDEBIAN-CVE-2021-20245
5.5
A flaw was found in ImageMagick in coders/webp.c. An attacker who submits a crafted file that is processed by ImageMagick could trigger undefined behavior in the form of math division by zero. The highest threat from this vulnerability is to system availability.
- Record
DEBIAN-CVE-2021-20245- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVJLSEC-2026-882
5.5
A flaw was found in ImageMagick in coders/webp.c. An attacker who submits a crafted file that is processed by ImageMagick could trigger undefined behavior in the form of math division by zero. The highest threat from this vulnerability is to system availability.
- Record
JLSEC-2026-882- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - CVSS 2.0
- 7.1 High
AV:N/AC:M/Au:N/C:N/I:N/A:C - Updated
- 2026-11-02
OSVUBUNTU-CVE-2021-20245
5.5
A flaw was found in ImageMagick in coders/webp.c. An attacker who submits a crafted file that is processed by ImageMagick could trigger undefined behavior in the form of math division by zero. The highest threat from this vulnerability is to system availability.
- Record
UBUNTU-CVE-2021-20245- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVUSN-5736-1 No score
imagemagick vulnerabilities
It was discovered that ImageMagick incorrectly handled certain values when processing PDF files. If a user or automated system using ImageMagick were tricked into opening a specially crafted PDF file, an attacker could exploit this to cause a denial of service. This issue only affected Ubuntu 14.04 ESM, Ubuntu 16.04 ESM and Ubuntu 18.04 LTS. (CVE-2021-20224)
Zhang Xiaohui discovered that ImageMagick incorrectly handled certain values when processing image data. If a user or automated system using ImageMagick were tricked into opening a specially crafted image, an attacker could exploit this to cause a denial of service. This issue only affected Ubuntu 18.04 LTS and Ubuntu 22.10. (CVE-2021-20241)
Zhang Xiaohui discovered that ImageMagick incorrectly handled certain values when processing image data. If a user or automated system using ImageMagick were tricked into opening a specially crafted image, an attacker could exploit this to cause a denial of service. This issue only affected Ubuntu 14.04 ESM, Ubuntu 18.04 LTS and Ubuntu 22.10. (CVE-2021-20243)
It was discovered that ImageMagick incorrectly handled certain values when processing visual effects based image files. By tricking a user into opening a specially crafted image file, an attacker could crash the application causing a denial of service. This issue only affected Ubuntu 22.10. (CVE-2021-20244)
It was discovered that ImageMagick could be made to divide by zero when processing crafted files. By tricking a user into opening a specially crafted image file, an attacker could crash the application causing a denial of service. This issue only affected Ubuntu 22.10. (CVE-2021-20245)
It was discovered that ImageMagick incorrectly handled certain values when performing resampling operations. By tricking a user into opening a specially crafted image file, an attacker could crash the application causing a denial of service. This issue only affected Ubuntu 22.10. (CVE-2021-20246)
It was discovered that ImageMagick incorrectly handled certain values when processing visual effects based image files. By tricking a user into opening a specially crafted image file, an attacker could crash the application causing a denial of service. This issue only affected Ubuntu 22.10. (CVE-2021-20309)
It was discovered that ImageMagick incorrectly handled certain values when processing thumbnail image data. By tricking a user into opening a specially crafted image file, an attacker could crash the application causing a denial of service. This issue only affected Ubuntu 22.10. (CVE-2021-20312)
It was discovered that ImageMagick incorrectly handled memory cleanup when performing certain cryptographic operations. Under certain conditions sensitive cryptographic information could be disclosed. This issue only affected Ubuntu 22.10. (CVE-2021-20313)
It was discovered that ImageMagick did not properly manage memory under certain circumstances. If a user were tricked into opening a specially crafted file using the convert command, an attacker could possibly use this issue to cause ImageMagick to crash, resulting in a denial of service. This issue only affected Ubuntu 22.10. (CVE-2021-3574)
It was discovered that ImageMagick did not use the correct rights when specifically excluded by a module policy. An attacker could use this issue to read and write certain restricted files. This issue only affected Ubuntu 22.10. (CVE-2021-39212)
It was discovered that ImageMagick incorrectly handled certain values when processing specially crafted SVG files. By tricking a user into opening a specially crafted SVG file, an attacker could crash the application causing a denial of service. This issue only affected Ubuntu 22.10. (CVE-2021-4219)
It was discovered that ImageMagick did not properly manage memory under certain circumstances. If a user were tricked into opening a specially crafted DICOM file, an attacker could possibly use this issue to cause ImageMagick to crash, resulting in a denial of servicei,…
- Record
USN-5736-1- Updated
- 2026-11-02
OSVUSN-5736-2 No score
imagemagick vulnerabilities
USN-5736-1 fixed vulnerabilities in ImageMagick. This update provides the corresponding updates for Ubuntu 20.04 ESM and Ubuntu 22.04 ESM. One of the issues, CVE-2021-20224, only affected Ubuntu 20.04 ESM, while CVE-2021-20245, CVE-2021-3574, CVE-2021-4219 and CVE-2022-1114 only affected Ubuntu 22.04 ESM.
Original advisory details:
It was discovered that ImageMagick incorrectly handled certain values when processing PDF files. If a user or automated system using ImageMagick were tricked into opening a specially crafted PDF file, an attacker could exploit this to cause a denial of service. This issue only affected Ubuntu 14.04 ESM, Ubuntu 16.04 ESM and Ubuntu 18.04 LTS. (CVE-2021-20224)
Zhang Xiaohui discovered that ImageMagick incorrectly handled certain values when processing image data. If a user or automated system using ImageMagick were tricked into opening a specially crafted image, an attacker could exploit this to cause a denial of service. This issue only affected Ubuntu 18.04 LTS and Ubuntu 22.10. (CVE-2021-20241)
Zhang Xiaohui discovered that ImageMagick incorrectly handled certain values when processing image data. If a user or automated system using ImageMagick were tricked into opening a specially crafted image, an attacker could exploit this to cause a denial of service. This issue only affected Ubuntu 14.04 ESM, Ubuntu 18.04 LTS and Ubuntu 22.10. (CVE-2021-20243)
It was discovered that ImageMagick incorrectly handled certain values when processing visual effects based image files. By tricking a user into opening a specially crafted image file, an attacker could crash the application causing a denial of service. This issue only affected Ubuntu 22.10. (CVE-2021-20244)
It was discovered that ImageMagick could be made to divide by zero when processing crafted files. By tricking a user into opening a specially crafted image file, an attacker could crash the application causing a denial of service. This issue only affected Ubuntu 22.10. (CVE-2021-20245)
It was discovered that ImageMagick incorrectly handled certain values when performing resampling operations. By tricking a user into opening a specially crafted image file, an attacker could crash the application causing a denial of service. This issue only affected Ubuntu 22.10. (CVE-2021-20246)
It was discovered that ImageMagick incorrectly handled certain values when processing visual effects based image files. By tricking a user into opening a specially crafted image file, an attacker could crash the application causing a denial of service. This issue only affected Ubuntu 22.10. (CVE-2021-20309)
It was discovered that ImageMagick incorrectly handled certain values when processing thumbnail image data. By tricking a user into opening a specially crafted image file, an attacker could crash the application causing a denial of service. This issue only affected Ubuntu 22.10. (CVE-2021-20312)
It was discovered that ImageMagick incorrectly handled memory cleanup when performing certain cryptographic operations. Under certain conditions sensitive cryptographic information could be disclosed. This issue only affected Ubuntu 22.10. (CVE-2021-20313)
It was discovered that ImageMagick did not properly manage memory under certain circumstances. If a user were tricked into opening a specially crafted file using the convert command, an attacker could possibly use this issue to cause ImageMagick to crash, resulting in a denial of service. This issue only affected Ubuntu 22.10. (CVE-2021-3574)
It was discovered that ImageMagick did not use the correct rights when specifically excluded by a module policy. An attacker could use this issue to read and write certain restricted files. This issue only affected Ubuntu 22.10. (CVE-2021-39212)
It was discovered that ImageMagick incorrectly handled certain values when processing specially crafted SVG files. By tricking a user into opening a specially crafted SVG…
- Record
USN-5736-2- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
imagemagickAlpine:v3.13 |
7.0.0 up to 7.0.11.13-r0 | 7.0.11.13-r0 |
imagemagickAlpine:v3.14 |
7.0.0 up to 7.0.11.1-r0 | 7.0.11.1-r0 |
imagemagickAlpine:v3.15 |
7.0.0 up to 7.0.11.1-r0 | 7.0.11.1-r0 |
imagemagickAlpine:v3.16 |
7.0.0 up to 7.0.11.1-r0 | 7.0.11.1-r0 |
imagemagickAlpine:v3.17 |
7.0.0 up to 7.0.11.1-r0 | 7.0.11.1-r0 |
imagemagickAlpine:v3.18 |
7.0.0 up to 7.0.11.1-r0 | 7.0.11.1-r0 |
imagemagickAlpine:v3.19 |
7.0.0 up to 7.0.11.1-r0 | 7.0.11.1-r0 |
imagemagickAlpine:v3.20 |
7.0.0 up to 7.0.11.1-r0 | 7.0.11.1-r0 |
imagemagickAlpine:v3.21 |
7.0.0 up to 7.0.11.1-r0 | 7.0.11.1-r0 |
imagemagickAlpine:v3.22 |
7.0.0 up to 7.0.11.1-r0 | 7.0.11.1-r0 |
Show 14 moreShow less
| Package | Affected | Fixed |
|---|---|---|
imagemagickAlpine:v3.23 |
7.0.0 up to 7.0.11.1-r0 | 7.0.11.1-r0 |
imagemagickAlpine:v3.24 |
7.0.0 up to 7.0.11.1-r0 | 7.0.11.1-r0 |
imagemagickDebian:12 |
before 8:6.9.11.60+dfsg-1.5 | 8:6.9.11.60+dfsg-1.5 |
imagemagickDebian:13 |
before 8:6.9.11.60+dfsg-1.5 | 8:6.9.11.60+dfsg-1.5 |
imagemagickDebian:14 |
before 8:6.9.11.60+dfsg-1.5 | 8:6.9.11.60+dfsg-1.5 |
imagemagickDebian:9 From an advisory covering 6 CVEs |
before 8:6.9.7.4+dfsg-11+deb9u13, plus listed versions 8:6.9.7.4+dfsg-118:6.9.7.4+dfsg-11+deb9u18:6.9.7.4+dfsg-11+deb9u108:6.9.7.4+dfsg-11+deb9u118:6.9.7.4+dfsg-11+deb9u12 Show 8 moreShow less8:6.9.7.4+dfsg-11+deb9u28:6.9.7.4+dfsg-11+deb9u38:6.9.7.4+dfsg-11+deb9u48:6.9.7.4+dfsg-11+deb9u58:6.9.7.4+dfsg-11+deb9u68:6.9.7.4+dfsg-11+deb9u78:6.9.7.4+dfsg-11+deb9u88:6.9.7.4+dfsg-11+deb9u9 |
8:6.9.7.4+dfsg-11+deb9u13 |
imagemagickDebian:10 From an advisory covering 14 CVEs |
before 8:6.9.10.23+dfsg-2.1+deb10u5, plus listed versions 8:6.9.10.23+dfsg-2.18:6.9.10.23+dfsg-2.1+deb10u18:6.9.10.23+dfsg-2.1+deb10u28:6.9.10.23+dfsg-2.1+deb10u38:6.9.10.23+dfsg-2.1+deb10u4 |
8:6.9.10.23+dfsg-2.1+deb10u5 |
ImageMagick_jllJulia |
before 6.9.12+0 | 6.9.12+0 |
imagemagickUbuntu:Pro:22.04:LTS |
before 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1, plus listed versions 8:6.9.11.60+dfsg-1ubuntu18:6.9.11.60+dfsg-1.38:6.9.11.60+dfsg-1.3build18:6.9.11.60+dfsg-1.3build28:6.9.11.60+dfsg-1.3ubuntu0.22.04.1 |
8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1 |
imagemagickUbuntu:Pro:14.04:LTS From an advisory covering 17 CVEs |
before 8:6.7.7.10-6ubuntu3.13+esm3, plus listed versions 8:6.7.7.10-5ubuntu38:6.7.7.10-5ubuntu48:6.7.7.10-6ubuntu18:6.7.7.10-6ubuntu28:6.7.7.10-6ubuntu3 Show 14 moreShow less8:6.7.7.10-6ubuntu3.18:6.7.7.10-6ubuntu3.28:6.7.7.10-6ubuntu3.38:6.7.7.10-6ubuntu3.48:6.7.7.10-6ubuntu3.58:6.7.7.10-6ubuntu3.68:6.7.7.10-6ubuntu3.78:6.7.7.10-6ubuntu3.88:6.7.7.10-6ubuntu3.98:6.7.7.10-6ubuntu3.118:6.7.7.10-6ubuntu3.128:6.7.7.10-6ubuntu3.138:6.7.7.10-6ubuntu3.13+esm18:6.7.7.10-6ubuntu3.13+esm2 |
8:6.7.7.10-6ubuntu3.13+esm3 |
imagemagickUbuntu:Pro:16.04:LTS From an advisory covering 17 CVEs |
before 8:6.8.9.9-7ubuntu5.16+esm5, plus listed versions 8:6.8.9.9-5ubuntu28:6.8.9.9-68:6.8.9.9-6build18:6.8.9.9-78:6.8.9.9-7ubuntu1 Show 23 moreShow less8:6.8.9.9-7ubuntu28:6.8.9.9-7ubuntu38:6.8.9.9-7ubuntu48:6.8.9.9-7ubuntu58:6.8.9.9-7ubuntu5.18:6.8.9.9-7ubuntu5.28:6.8.9.9-7ubuntu5.38:6.8.9.9-7ubuntu5.48:6.8.9.9-7ubuntu5.58:6.8.9.9-7ubuntu5.68:6.8.9.9-7ubuntu5.78:6.8.9.9-7ubuntu5.88:6.8.9.9-7ubuntu5.98:6.8.9.9-7ubuntu5.118:6.8.9.9-7ubuntu5.128:6.8.9.9-7ubuntu5.138:6.8.9.9-7ubuntu5.148:6.8.9.9-7ubuntu5.158:6.8.9.9-7ubuntu5.168:6.8.9.9-7ubuntu5.16+esm18:6.8.9.9-7ubuntu5.16+esm28:6.8.9.9-7ubuntu5.16+esm38:6.8.9.9-7ubuntu5.16+esm4 |
8:6.8.9.9-7ubuntu5.16+esm5 |
imagemagickUbuntu:18.04:LTS From an advisory covering 17 CVEs |
before 8:6.9.7.4+dfsg-16ubuntu6.14, plus listed versions 8:6.9.7.4+dfsg-16ubuntu28:6.9.7.4+dfsg-16ubuntu38:6.9.7.4+dfsg-16ubuntu48:6.9.7.4+dfsg-16ubuntu58:6.9.7.4+dfsg-16ubuntu6 Show 9 moreShow less8:6.9.7.4+dfsg-16ubuntu6.28:6.9.7.4+dfsg-16ubuntu6.38:6.9.7.4+dfsg-16ubuntu6.48:6.9.7.4+dfsg-16ubuntu6.78:6.9.7.4+dfsg-16ubuntu6.88:6.9.7.4+dfsg-16ubuntu6.98:6.9.7.4+dfsg-16ubuntu6.118:6.9.7.4+dfsg-16ubuntu6.128:6.9.7.4+dfsg-16ubuntu6.13 |
8:6.9.7.4+dfsg-16ubuntu6.14 |
imagemagickUbuntu:Pro:20.04:LTS From an advisory covering 17 CVEs |
before 8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1, plus listed versions 8:6.9.10.23+dfsg-2.1ubuntu38:6.9.10.23+dfsg-2.1ubuntu88:6.9.10.23+dfsg-2.1ubuntu98:6.9.10.23+dfsg-2.1ubuntu108:6.9.10.23+dfsg-2.1ubuntu118:6.9.10.23+dfsg-2.1ubuntu11.18:6.9.10.23+dfsg-2.1ubuntu11.28:6.9.10.23+dfsg-2.1ubuntu11.4 |
8:6.9.10.23+dfsg-2.1ubuntu11.4+esm1 |
imagemagickUbuntu:Pro:22.04:LTS From an advisory covering 17 CVEs |
before 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1, plus listed versions 8:6.9.11.60+dfsg-1ubuntu18:6.9.11.60+dfsg-1.38:6.9.11.60+dfsg-1.3build18:6.9.11.60+dfsg-1.3build28:6.9.11.60+dfsg-1.3ubuntu0.22.04.1 |
8:6.9.11.60+dfsg-1.3ubuntu0.22.04.1+esm1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| affected, aliases, references | OSV | |
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-20245 is a medium vulnerability (CVSS 5.5) in Imagemagick, published March 9, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.21%, the 68th percentile. Fixed in imagemagick 7.0.11.13-r0.
References
bugzilla.redhat.com/show_bug.cgi?id=1928943
github.com/ImageMagick/ImageMagick/issues/3176
lists.debian.org/debian-lts-announce/2021/06/msg00000.html
lists.debian.org/debian-lts-announce/2023/05/msg00020.html
nvd.nist.gov/vuln/detail/CVE-2021-20245
github.com/advisories/GHSA-pwcp-7wg2-65jc
Show 22 moreShow less
security.alpinelinux.org/vuln/CVE-2021-20245
security-tracker.debian.org/tracker/CVE-2021-20245
ubuntu.com/security/CVE-2021-20245
ubuntu.com/security/notices/USN-5736-1
ubuntu.com/security/notices/USN-5736-2
cve.org/CVERecord?id=CVE-2021-20245
ubuntu.com/security/CVE-2021-3574
ubuntu.com/security/CVE-2021-4219
ubuntu.com/security/CVE-2021-20224
ubuntu.com/security/CVE-2021-20241
ubuntu.com/security/CVE-2021-20243
ubuntu.com/security/CVE-2021-20244
ubuntu.com/security/CVE-2021-20246
ubuntu.com/security/CVE-2021-20309
ubuntu.com/security/CVE-2021-20312
ubuntu.com/security/CVE-2021-20313
ubuntu.com/security/CVE-2021-39212
ubuntu.com/security/CVE-2022-1114
ubuntu.com/security/CVE-2022-28463
ubuntu.com/security/CVE-2022-32545
ubuntu.com/security/CVE-2022-32546
ubuntu.com/security/CVE-2022-32547
Left out here: the rest of 2 source descriptions. The JSON record has them.