ImageMagick
At a glance
- Source
- NVD
- EPSS
- EPSS 1.03 % · percentile 65 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- redhat
- Affected products
- ImageMagick
- NVD status
- Modified
Description
WriteOnePNGImage() from coders/png.c (the PNG coder) has a for loop with an improper exit condition that can allow an out-of-bounds READ via heap-buffer-overflow. This occurs because it is possible for the colormap to have less than 256 valid values but the loop condition will loop 256 times, attempting to pass invalid colormap data to the event logger. The patch replaces the hardcoded 256 value with a call to MagickMin() to ensure the proper value is used. This could impact application availability when a specially crafted input file is processed by ImageMagick. This flaw affects ImageMagick versions prior to 7.0.8-68.
Weaknesses (CWE)
- CWE-122 — Heap-based Buffer Overflow
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H | NVD · nvd@nist.gov (Primary) |
| CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:N/I:N/A:P | NVD · nvd@nist.gov (Primary) |
European references
- ENISA EUVD · EUVD-2020-18336
- GCVE · GCVE-0-2020-25674
Affected configurations (NVD CPE)
cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*< 6.9.10-68cpe:2.3:a:imagemagick:imagemagick:*:*:*:*:*:*:*:*≥ 7.0.0-0 < 7.0.8-68cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
Affected products
| Product | Affected versions |
|---|---|
| ImageMagick | affected : prior to 7.0.8-68 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |