CVE & CISA-KEV Catalog

CVE-2020-25674

MEDIUM
5.5
CVSS v3
NVD

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.

How to fix

Remediation Available
imagemagickDebian
Fixed in:8:6.9.11.24+dfsg-1CVE-2020-25674
Fixed in:8:6.9.11.24+dfsg-1CVE-2020-25674
Fixed in:8:6.9.11.24+dfsg-1CVE-2020-25674
Fixed in:8:6.9.11.24+dfsg-1CVE-2020-25674
imagemagickUbuntu
Fixed in:8:6.7.7.10-6ubuntu3.13+esm11USN-7068-1
Fixed in:8:6.8.9.9-7ubuntu5.16+esm11USN-7068-1
Fixed in:8:6.8.9.9-7ubuntu5.16+esm2USN-5335-1
Fixed in:8:6.9.7.4+dfsg-16ubuntu6.11USN-4988-1
Fixed in:8:6.9.10.23+dfsg-2.1ubuntu11.4USN-4988-1
imagemagick-6.q16Ubuntu
Fixed in:8:6.8.9.9-7ubuntu5.16+esm11USN-7068-1
Fixed in:8:6.8.9.9-7ubuntu5.16+esm2USN-5335-1
Fixed in:8:6.9.7.4+dfsg-16ubuntu6.11USN-4988-1
Fixed in:8:6.9.10.23+dfsg-2.1ubuntu11.4USN-4988-1
imagemagick-commonUbuntu
Fixed in:8:6.8.9.9-7ubuntu5.16+esm2USN-5335-1
libimage-magick-perlUbuntu
Fixed in:8:6.8.9.9-7ubuntu5.16+esm11USN-7068-1
Fixed in:8:6.8.9.9-7ubuntu5.16+esm2USN-5335-1
libimage-magick-q16-perlUbuntu
Fixed in:8:6.8.9.9-7ubuntu5.16+esm2USN-5335-1
Fixed in:8:6.8.9.9-7ubuntu5.16+esm11USN-7068-1
libmagick++-6.q16-5v5Ubuntu
Fixed in:8:6.8.9.9-7ubuntu5.16+esm2USN-5335-1
Fixed in:8:6.8.9.9-7ubuntu5.16+esm11USN-7068-1
libmagick++-6.q16-7Ubuntu
Fixed in:8:6.9.7.4+dfsg-16ubuntu6.11USN-4988-1
libmagick++-6.q16-8Ubuntu
Fixed in:8:6.9.10.23+dfsg-2.1ubuntu11.4USN-4988-1
libmagick++-6.q16-devUbuntu
Fixed in:8:6.8.9.9-7ubuntu5.16+esm2USN-5335-1
libmagick++-devUbuntu
Fixed in:8:6.7.7.10-6ubuntu3.13+esm11USN-7068-1
libmagick++5Ubuntu
Fixed in:8:6.7.7.10-6ubuntu3.13+esm11USN-7068-1
libmagickcore-6-arch-configUbuntu
Fixed in:8:6.8.9.9-7ubuntu5.16+esm2USN-5335-1
libmagickcore-6-headersUbuntu
Fixed in:8:6.8.9.9-7ubuntu5.16+esm2USN-5335-1
Fixed in:8:6.8.9.9-7ubuntu5.16+esm11USN-7068-1
libmagickcore-6.q16-2Ubuntu
Fixed in:8:6.8.9.9-7ubuntu5.16+esm11USN-7068-1
Fixed in:8:6.8.9.9-7ubuntu5.16+esm2USN-5335-1
libmagickcore-6.q16-2-extraUbuntu
Fixed in:8:6.8.9.9-7ubuntu5.16+esm2USN-5335-1
Fixed in:8:6.8.9.9-7ubuntu5.16+esm11USN-7068-1
libmagickcore-6.q16-3Ubuntu
Fixed in:8:6.9.7.4+dfsg-16ubuntu6.11USN-4988-1
libmagickcore-6.q16-3-extraUbuntu
Fixed in:8:6.9.7.4+dfsg-16ubuntu6.11USN-4988-1
libmagickcore-6.q16-6Ubuntu
Fixed in:8:6.9.10.23+dfsg-2.1ubuntu11.4USN-4988-1
libmagickcore-6.q16-6-extraUbuntu
Fixed in:8:6.9.10.23+dfsg-2.1ubuntu11.4USN-4988-1
libmagickcore-6.q16-devUbuntu
Fixed in:8:6.8.9.9-7ubuntu5.16+esm2USN-5335-1
Fixed in:8:6.8.9.9-7ubuntu5.16+esm11USN-7068-1
libmagickcore-devUbuntu
Fixed in:8:6.7.7.10-6ubuntu3.13+esm11USN-7068-1
Fixed in:8:6.8.9.9-7ubuntu5.16+esm2USN-5335-1
libmagickcore5Ubuntu
Fixed in:8:6.7.7.10-6ubuntu3.13+esm11USN-7068-1
libmagickcore5-extraUbuntu
Fixed in:8:6.7.7.10-6ubuntu3.13+esm11USN-7068-1
libmagickwand-6.q16-2Ubuntu
Fixed in:8:6.8.9.9-7ubuntu5.16+esm11USN-7068-1
Fixed in:8:6.8.9.9-7ubuntu5.16+esm2USN-5335-1
libmagickwand-6.q16-devUbuntu
Fixed in:8:6.8.9.9-7ubuntu5.16+esm2USN-5335-1
libmagickwand-devUbuntu
Fixed in:8:6.7.7.10-6ubuntu3.13+esm11USN-7068-1
libmagickwand5Ubuntu
Fixed in:8:6.7.7.10-6ubuntu3.13+esm11USN-7068-1
perlmagickUbuntu
Fixed in:8:6.7.7.10-6ubuntu3.13+esm11USN-7068-1
Fixed in:8:6.8.9.9-7ubuntu5.16+esm2USN-5335-1
ImageMagick Q16Windows application
Affected:6.9.10-68Fixed in:6.9.10-68ImageMagick Studio LLC
Affected:7.0.0-0 7.0.8-68Fixed in:7.0.8-68ImageMagick Studio LLC
ImageMagick Q16-HDRIWindows application
Affected:6.9.10-68Fixed in:6.9.10-68ImageMagick Studio LLC
Affected:7.0.0-0 7.0.8-68Fixed in:7.0.8-68ImageMagick Studio LLC

Remediation is compiled from vendor and distribution security advisories. Always confirm against the linked source for your exact version and platform.

CVSS v3 Vector

Exploitability

Attack VectorLocal
Attack ComplexityLow
Privileges RequiredNone
User InteractionRequired
ScopeUnchanged

Impact

ConfidentialityNone
IntegrityNone
AvailabilityHigh

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Exploit Intelligence

1.02%probability of exploitation in 30 days
59thpercentile

Moderate risk: more likely to be exploited than 59% of all known CVEs.

References

Third-Party Advisory1
Other references1

Related Vulnerabilities

Other CWE-122 (Heap-based Buffer Overflow) vulnerabilities, ordered by exploit likelihood. View all

CVESeverityCVSSEPSSExploitedFix
CVE-2015-3113Critical9.8100%KEVFix
CVE-2024-26256High7.888%-Fix
CVE-2020-25687Medium5.987%-Fix
CVE-2009-3459High8.886%KEVFix
CVE-2021-21017High8.886%KEV-
CVE-2020-25683Medium5.986%-Fix
Embed a live status badge for CVE-2020-25674
CVE-2020-25674 severity badge

Markdown

[![CVE-2020-25674](https://tridentstack.com/cve/badge/CVE-2020-25674.svg)](https://tridentstack.com/cve/CVE-2020-25674)

HTML

<a href="https://tridentstack.com/cve/CVE-2020-25674"><img src="https://tridentstack.com/cve/badge/CVE-2020-25674.svg" alt="CVE-2020-25674"></a>

Find and fix vulnerabilities across your fleet

TridentStack Control continuously scans your Windows, macOS, and Linux fleet for known vulnerabilities, prioritizes them by severity and active exploitation, and patches them automatically.

Start free

This product uses NVD data but is not endorsed or certified by the NVD. EPSS scores courtesy of FIRST.org (https://www.first.org/epss). Source: CISA KEV Catalog. Data as of 2024-11-21.