Advisory

DEBIAN-CVE-2025-57803

Also known as: CVE-2025-57803

Summary

The record has no summary.

Details

ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 6.9.13-28 and 7.1.2-2 for ImageMagick's 32-bit build, a 32-bit integer overflow in the BMP encoder’s scanline-stride computation collapses bytes_per_line (stride) to a tiny value while the per-row writer still emits 3 × width bytes for 24-bpp images. The row base pointer advances using the (overflowed) stride, so the first row immediately writes past its slot and into adjacent heap memory with attacker-controlled bytes. This is a classic, powerful primitive for heap corruption in common auto-convert pipelines. This issue has been patched in versions 6.9.13-28 and 7.1.2-2.

Severity

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

Dates

Published
2025-08-26 18:15 UTC
Modified
2026-09-01 20:05 UTC

Affected packages and fixes

imagemagick

Debian packages (deb) · Debian 12

Affected

  • introduced 0, fixed 8:6.9.11.60+dfsg-1.6+deb12u4 (ecosystem)

Fixed versions

8:6.9.11.60+dfsg-1.6+deb12u4

Fix

  • Fixed version 8:6.9.11.60+dfsg-1.6+deb12u4
    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:7.1.1.43+dfsg1-1+deb13u2 (ecosystem)

Fixed versions

8:7.1.1.43+dfsg1-1+deb13u2

Fix

  • Fixed version 8:7.1.1.43+dfsg1-1+deb13u2
    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:7.1.2.3+dfsg1-1 (ecosystem)

Fixed versions

8:7.1.2.3+dfsg1-1

Fix

  • Fixed version 8:7.1.2.3+dfsg1-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