StackPatch is liveSee product

Back to CVE digest
CVE-2019-7397 · cross-distro fix matrix

CVE-2019-7397: In ImageMagick before 7.0.8-25 and GraphicsMagick through 1.3.31, several memory leaks exist in WritePDFImage in coders/pdf.c.

Affects 8 Linux releases across 11 (distro × package) combinations.

Fix per ecosystem

Each block below is a distro release where CVE-2019-7397 has a known fix. Run the listed command on that distro to remediate.

Debian bullseye

Source: Debian Security Tracker

  • graphicsmagick→ fixed in1.4~hg15896-1urgency: unimportant
    sudo apt-get install --only-upgrade -y graphicsmagick
  • imagemagick→ fixed in8:6.9.11.24+dfsg-1urgency: unimportant
    sudo apt-get install --only-upgrade -y imagemagick

Debian bookworm

Source: Debian Security Tracker

  • graphicsmagick→ fixed in1.4~hg15896-1urgency: unimportant
    sudo apt-get install --only-upgrade -y graphicsmagick
  • imagemagick→ fixed in8:6.9.11.24+dfsg-1urgency: unimportant
    sudo apt-get install --only-upgrade -y imagemagick

Debian trixie

Source: Debian Security Tracker

  • graphicsmagick→ fixed in1.4~hg15896-1urgency: unimportant
    sudo apt-get install --only-upgrade -y graphicsmagick
  • imagemagick→ fixed in8:6.9.11.24+dfsg-1urgency: unimportant
    sudo apt-get install --only-upgrade -y imagemagick

Alpine v3.20

Source: Alpine secdb

  • graphicsmagick→ fixed in1.3.32-r0
    apk update && apk add --upgrade graphicsmagick

Alpine v3.21

Source: Alpine secdb

  • graphicsmagick→ fixed in1.3.32-r0
    apk update && apk add --upgrade graphicsmagick

Alpine edge

Source: Alpine secdb

  • graphicsmagick→ fixed in1.3.32-r0
    apk update && apk add --upgrade graphicsmagick

Alpine v3.18

Source: Alpine secdb

  • graphicsmagick→ fixed in1.3.32-r0
    apk update && apk add --upgrade graphicsmagick

Alpine v3.19

Source: Alpine secdb

  • graphicsmagick→ fixed in1.3.32-r0
    apk update && apk add --upgrade graphicsmagick
Are YOU affected by CVE-2019-7397?

5-second check on your actual server. Reads /etc/os-release, uname -r, and the distro's package manager; matches against this same cross-source index live.

curl https://mindsparkstack.com/scan.sh | bash
Continuous monitoring beats manual checking

CVE-2019-7397dropped silently in your distro's update channel. Every new CVE is the same story. StackPatch runs the matcher hourly against all 5 sources and emails the exact remediation when something new applies to one of your servers. $99 lifetime, 50 founder seats, 30-day refund.

See StackPatch ($99 lifetime)