CVE-2020-25674 PUBLISHED

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.31% · 54.3th percentile

Risk Scores

EPSS Score
0.31%
54.3th percentile

Affected Products

VendorProductVersions
Ubuntu:Pro:16.04:LTSimagemagick*, 0, 8:6.8.9.9-6
Ubuntu:20.04:LTSimagemagick0, 8:6.9.10.23+dfsg-2.1ubuntu3, 8:6.9.10.23+dfsg-2.1ubuntu9
Ubuntu:18.04:LTSimagemagick8:6.9.7.4+dfsg-16ubuntu6.8, 8:6.9.7.4+dfsg-16ubuntu6.9, 0

Timeline

References

Open in Interactive Console →