CVE-2020-25674
CVE-2020-25674
This page contains facts from public vulnerability sources. Check the original advisory before updating.
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 5.5 · Medium · EPSS 1.0% · Fix available
- Published
- Updated
Stack: system
Affected products and versions
imagemagick
- Versions
- prior to 7.0.8-68: Affected
No fix published
imagemagick Debian:12
- Affected ranges
- ECOSYSTEM: < 8:6.9.11.24+dfsg-1
Update to 8:6.9.11.24+dfsg-1
imagemagick Debian:13
- Affected ranges
- ECOSYSTEM: < 8:6.9.11.24+dfsg-1
Update to 8:6.9.11.24+dfsg-1
imagemagick Debian:14
- Affected ranges
- ECOSYSTEM: < 8:6.9.11.24+dfsg-1
Update to 8:6.9.11.24+dfsg-1
imagemagick Ubuntu:Pro:16.04:LTS
- Versions
- 8:6.8.9.9-5ubuntu2
- 8:6.8.9.9-6
- 8:6.8.9.9-6build1
- 8:6.8.9.9-7
- 8:6.8.9.9-7ubuntu1
- 8:6.8.9.9-7ubuntu2
- 8:6.8.9.9-7ubuntu3
- 8:6.8.9.9-7ubuntu4
- 8:6.8.9.9-7ubuntu5
- 8:6.8.9.9-7ubuntu5.1
- 8:6.8.9.9-7ubuntu5.2
- 8:6.8.9.9-7ubuntu5.3
- 8:6.8.9.9-7ubuntu5.4
- 8:6.8.9.9-7ubuntu5.5
- 8:6.8.9.9-7ubuntu5.6
- 8:6.8.9.9-7ubuntu5.7
- 8:6.8.9.9-7ubuntu5.8
- 8:6.8.9.9-7ubuntu5.9
- 8:6.8.9.9-7ubuntu5.11
- 8:6.8.9.9-7ubuntu5.12
- 8:6.8.9.9-7ubuntu5.13
- 8:6.8.9.9-7ubuntu5.14
- 8:6.8.9.9-7ubuntu5.15
- 8:6.8.9.9-7ubuntu5.16
- 8:6.8.9.9-7ubuntu5.16+esm1
- Affected ranges
- ECOSYSTEM: < 8:6.8.9.9-7ubuntu5.16+esm2
Update to 8:6.8.9.9-7ubuntu5.16+esm2
imagemagick Ubuntu:18.04:LTS
- Versions
- 8:6.9.7.4+dfsg-16ubuntu2
- 8:6.9.7.4+dfsg-16ubuntu3
- 8:6.9.7.4+dfsg-16ubuntu4
- 8:6.9.7.4+dfsg-16ubuntu5
- 8:6.9.7.4+dfsg-16ubuntu6
- 8:6.9.7.4+dfsg-16ubuntu6.2
- 8:6.9.7.4+dfsg-16ubuntu6.3
- 8:6.9.7.4+dfsg-16ubuntu6.4
- 8:6.9.7.4+dfsg-16ubuntu6.7
- 8:6.9.7.4+dfsg-16ubuntu6.8
- 8:6.9.7.4+dfsg-16ubuntu6.9
- Affected ranges
- ECOSYSTEM: < 8:6.9.7.4+dfsg-16ubuntu6.11
Update to 8:6.9.7.4+dfsg-16ubuntu6.11
imagemagick Ubuntu:20.04:LTS
- Versions
- 8:6.9.10.23+dfsg-2.1ubuntu3
- 8:6.9.10.23+dfsg-2.1ubuntu8
- 8:6.9.10.23+dfsg-2.1ubuntu9
- 8:6.9.10.23+dfsg-2.1ubuntu10
- 8:6.9.10.23+dfsg-2.1ubuntu11
- 8:6.9.10.23+dfsg-2.1ubuntu11.1
- 8:6.9.10.23+dfsg-2.1ubuntu11.2
- Affected ranges
- ECOSYSTEM: < 8:6.9.10.23+dfsg-2.1ubuntu11.4
Update to 8:6.9.10.23+dfsg-2.1ubuntu11.4