Advisory

DEBIAN-CVE-2020-25674

Also known as: CVE-2020-25674

Summary

The record has no summary.

Details

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.

Severity

Medium Basis: CVSS v3 score 5.5, vector CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Dates

Published
2020-12-08 22:15 UTC
Modified
2026-10-26 12:01 UTC

Affected packages and fixes

imagemagick

Debian packages (deb) · Debian 12

Affected

  • introduced 0, fixed 8:6.9.11.24+dfsg-1 (ecosystem)

Fixed versions

8:6.9.11.24+dfsg-1

Fix

  • Fixed version 8:6.9.11.24+dfsg-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

imagemagick

Debian packages (deb) · Debian 13

Affected

  • introduced 0, fixed 8:6.9.11.24+dfsg-1 (ecosystem)

Fixed versions

8:6.9.11.24+dfsg-1

Fix

  • Fixed version 8:6.9.11.24+dfsg-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

imagemagick

Debian packages (deb) · Debian 14

Affected

  • introduced 0, fixed 8:6.9.11.24+dfsg-1 (ecosystem)

Fixed versions

8:6.9.11.24+dfsg-1

Fix

  • Fixed version 8:6.9.11.24+dfsg-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences