CVE-2020-25674
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.
EPSS 0.25% · 48.8th percentile
Risk Scores
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Ubuntu:Pro:16.04:LTS | imagemagick | *, 0, 8:6.8.9.9-6 |
| Ubuntu:20.04:LTS | imagemagick | 0, 8:6.9.10.23+dfsg-2.1ubuntu3, 8:6.9.10.23+dfsg-2.1ubuntu9 |
| Ubuntu:18.04:LTS | imagemagick | 8:6.9.7.4+dfsg-16ubuntu6.8, 8:6.9.7.4+dfsg-16ubuntu6.9, 0 |
Exploit Intelligence
Timeline
- Dec 8, 2020 CVE Published
- Apr 14, 2021 EPSS Score
- Jun 23, 2021 EPSS Score
- Aug 24, 2021 EPSS Score
- Oct 26, 2021 EPSS Score
- Jan 6, 2022 EPSS Score
- Feb 4, 2022 EPSS Score
- Feb 28, 2022 EPSS Score
- Apr 1, 2022 EPSS Score
- May 1, 2022 EPSS Score
- Jul 3, 2022 EPSS Score
- Sep 4, 2022 EPSS Score
References
- https://ubuntu.com/security/CVE-2020-25674 third-party-advisory
- https://ubuntu.com/security/notices/USN-4988-1 vendor-advisory
- https://ubuntu.com/security/notices/USN-5335-1 vendor-advisory
- https://www.cve.org/CVERecord?id=CVE-2020-25674 third-party-advisory
- https://ubuntu.com/security/notices/USN-7068-1 vendor-advisory