CVE-2020-25674
Summary
| CVE | CVE-2020-25674 |
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2020-12-08 22:15:00 UTC |
| Updated | 2023-11-07 03:20:00 UTC |
| 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. |
NVD Known Affected Configurations (CPE 2.3)
References
| Reference | Source | Link | Tags |
|---|
| 1891928 – (CVE-2020-25674) CVE-2020-25674 ImageMagick: heap-based buffer overflow in WriteOnePNGImage in coders/png.c |
MISC |
bugzilla.redhat.com |
Exploit, Issue Tracking, Patch, Third Party Advisory |
| [SECURITY] [DLA 2523-1] imagemagick security update |
MLIST |
lists.debian.org |
Mailing List, Third Party Advisory |
| [SECURITY] [DLA 3357-1] imagemagick security update |
MLIST |
lists.debian.org |
|
| CVE Program record |
CVE.ORG |
www.cve.org |
canonical |
| NVD vulnerability detail |
NVD |
nvd.nist.gov |
canonical, analysis |
No vendor comments have been submitted for this CVE.
Legacy QID Mappings
- 181625 Debian Security Update for imagemagick (DLA 3357-1)
- 198406 Ubuntu Security Notification for ImageMagick vulnerabilities (USN-4988-1)
- 671560 EulerOS Security Update for ImageMagick (EulerOS-SA-2022-1536)
- 671612 EulerOS Security Update for ImageMagick (EulerOS-SA-2022-1570)
- 671705 EulerOS Security Update for ImageMagick (EulerOS-SA-2022-1731)
- 750398 OpenSUSE Security Update for ImageMagick (openSUSE-SU-2021:0148-1)
- 750404 OpenSUSE Security Update for ImageMagick (openSUSE-SU-2021:0136-1)