CVE-2020-25674: debian debian_linux Heap-based Buffer Overflow
Vulnerability summary
CVE-2020-25674 is a medium (CVSS 5.5) Heap-based Buffer Overflow vulnerability in debian debian_linux. EPSS estimates a 1.03% chance of exploitation in the next 30 days, higher than 63% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 10 · Related 8Timeline
- 08-12-2020PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 3 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
EPSS trend
Probability
1.03%
Chance of exploitation in the next 30 days
Percentile
63%
Versus all other CVEs
30-day change
0.00 pp
From 1.03% on 18-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundExploit Reference (bugzilla.redhat.com)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Debian2 products
- imagemagick< 8:6.9.11.24+dfsg-1
- debian_linuxEOL9.0
Imagemagick1 product
- imagemagick< 6.9.10-68 | ≥ 7.0.0-0, < 7.0.8-68
Ubuntu1 product
- imagemagick< 8:6.8.9.9-7ubuntu5.16+esm2 | < 8:6.9.7.4+dfsg-16ubuntu6.11 | < 8:6.9.10.23+dfsg-2.1ubuntu11.4
3 vendors · 4 products