CVE catalog

CVE-2018-5685

graphicsmagick: CVE-2018-5685

[CVE catalog]

Severity
High · CVSS 7.5CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
1.94% · Oct 25, 2026

In GraphicsMagick 1.3.27, there is an infinite loop and application hang in the ReadBMPImage function (coders/bmp.c). Remote attackers could leverage this vulnerability to cause a denial of service via an image file with a crafted bit-field mask value.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiangraphicsmagicksid1.4+really1.3.49-1fixed
Debiangraphicsmagickforky1.4+really1.3.49-1fixed
Debiangraphicsmagicktrixie1.4+really1.3.45+hg17696-1fixed
Debiangraphicsmagickbookworm1.4+really1.3.40-4+deb12u1fixed
Debiangraphicsmagickbookworm-security1.4+really1.3.40-4+deb12u1fixed
Ubuntugraphicsmagickpro1.3.21-3vulnerable
Ubuntugraphicsmagickpro1.3.23-1vulnerable
Ubuntugraphicsmagickpro1.3.23-1build1vulnerable
Ubuntugraphicsmagickpro1.3.23-1ubuntu0.1vulnerable
Ubuntugraphicsmagickpro1.3.23-1ubuntu0.1+esm1vulnerable
Ubuntugraphicsmagickpro1.3.23-1ubuntu0.2vulnerable
Ubuntugraphicsmagickpro1.3.23-1ubuntu0.3vulnerable
Ubuntugraphicsmagickpro1.3.23-1ubuntu0.4vulnerable
Ubuntugraphicsmagickpro1.3.23-1ubuntu0.5vulnerable
Ubuntugraphicsmagickpro1.3.23-1ubuntu0.6vulnerable
Ubuntugraphicsmagickpro1.3.23-1ubuntu0.6+esm1vulnerable
Ubuntugraphicsmagickpro1.3.23-1ubuntu0.6+esm2fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiangraphicsmagicksourcesid1.3.27-4not yet assignedNot reported[887158]
Debiangraphicsmagicksourceforky1.3.27-4not yet assignedNot reported[887158]
Debiangraphicsmagicksourcetrixie1.3.27-4not yet assignedNot reported[887158]
Debiangraphicsmagicksourcebookworm1.3.27-4not yet assignedNot reported[887158]
Ubuntugraphicsmagickdebpro1.3.23-1ubuntu0.6+esm2Not reportedUBUNTU-CVE-2018-5685Not reported

[Debian bug #887158]

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Details (4)
    • 1.4+really1.3.40-4+deb12u1 · amd64 · bookworm

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · bookworm; dsa · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · arm64 · bookworm

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · bookworm; dsa · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · amd64 · bookworm-security

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · bookworm; dsa · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · arm64 · bookworm-security

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · bookworm; dsa · graphicsmagick · debian · 12

  • Source package: [graphicsmagick]

    Details (4)
    • 1.4+really1.3.40-4+deb12u1 · amd64 · bookworm

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · bookworm; dsa · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · arm64 · bookworm

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · bookworm; dsa · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · amd64 · bookworm-security

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · bookworm; dsa · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · arm64 · bookworm-security

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · bookworm; dsa · graphicsmagick · debian · 12

  • Source package: [graphicsmagick]

    Details (4)
    • 1.4+really1.3.40-4+deb12u1 · all · bookworm

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · bookworm; dsa · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · all · bookworm

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · bookworm; dsa · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · all · bookworm-security

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · bookworm; dsa · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · all · bookworm-security

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · bookworm; dsa · graphicsmagick · debian · 12

  • Source package: [graphicsmagick]

    Details (4)
    • 1.4+really1.3.40-4+deb12u1 · all · bookworm

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · bookworm; dsa · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · all · bookworm

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · bookworm; dsa · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · all · bookworm-security

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · bookworm; dsa · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · all · bookworm-security

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · bookworm; dsa · graphicsmagick · debian · 12

  • Source package: [graphicsmagick]

    Details (4)
    • 1.4+really1.3.40-4+deb12u1 · amd64 · bookworm

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · bookworm; dsa · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · arm64 · bookworm

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · bookworm; dsa · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · amd64 · bookworm-security

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · bookworm; dsa · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · arm64 · bookworm-security

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · bookworm; dsa · graphicsmagick · debian · 12

  • Source package: [graphicsmagick]

    Details (4)
    • 1.4+really1.3.40-4+deb12u1 · amd64 · bookworm

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · bookworm; dsa · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · arm64 · bookworm

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · bookworm; dsa · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · amd64 · bookworm-security

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · bookworm; dsa · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · arm64 · bookworm-security

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · bookworm; dsa · graphicsmagick · debian · 12

  • Source package: [graphicsmagick]

    Details (4)
    • 1.4+really1.3.40-4+deb12u1 · amd64 · bookworm

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · bookworm; dsa · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · arm64 · bookworm

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · bookworm; dsa · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · amd64 · bookworm-security

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · bookworm; dsa · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · arm64 · bookworm-security

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · bookworm; dsa · graphicsmagick · debian · 12

  • Source package: [graphicsmagick]

    Details (4)
    • 1.4+really1.3.40-4+deb12u1 · amd64 · bookworm

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · bookworm; dsa · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · arm64 · bookworm

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · bookworm; dsa · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · amd64 · bookworm-security

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · bookworm; dsa · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · arm64 · bookworm-security

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · bookworm; dsa · graphicsmagick · debian · 12

  • Source package: [graphicsmagick]

    Details (4)
    • 1.4+really1.3.40-4+deb12u1 · amd64 · bookworm

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · bookworm; dsa · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · arm64 · bookworm

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · bookworm; dsa · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · amd64 · bookworm-security

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · bookworm; dsa · graphicsmagick · debian · 12

    • 1.4+really1.3.40-4+deb12u1 · arm64 · bookworm-security

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · bookworm; dsa · graphicsmagick · debian · 12

[Debian 13 (Trixie)]

  • Details (2)
    • 1.4+really1.3.45+hg17696-1 · amd64 · trixie

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · 13

    • 1.4+really1.3.45+hg17696-1 · arm64 · trixie

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · 13

  • Source package: [graphicsmagick]

    Details (2)
    • 1.4+really1.3.45+hg17696-1 · amd64 · trixie

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · 13

    • 1.4+really1.3.45+hg17696-1 · arm64 · trixie

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · 13

  • Source package: [graphicsmagick]

    Details (2)
    • 1.4+really1.3.45+hg17696-1 · all · trixie

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · 13

    • 1.4+really1.3.45+hg17696-1 · all · trixie

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · 13

  • Source package: [graphicsmagick]

    Details (2)
    • 1.4+really1.3.45+hg17696-1 · all · trixie

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · 13

    • 1.4+really1.3.45+hg17696-1 · all · trixie

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · 13

  • Source package: [graphicsmagick]

    Details (2)
    • 1.4+really1.3.45+hg17696-1 · amd64 · trixie

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · 13

    • 1.4+really1.3.45+hg17696-1 · arm64 · trixie

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · 13

  • Source package: [graphicsmagick]

    Details (2)
    • 1.4+really1.3.45+hg17696-1 · amd64 · trixie

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · 13

    • 1.4+really1.3.45+hg17696-1 · arm64 · trixie

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · 13

  • Source package: [graphicsmagick]

    Details (2)
    • 1.4+really1.3.45+hg17696-1 · amd64 · trixie

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · 13

    • 1.4+really1.3.45+hg17696-1 · arm64 · trixie

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · 13

  • Source package: [graphicsmagick]

    Details (2)
    • 1.4+really1.3.45+hg17696-1 · amd64 · trixie

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · 13

    • 1.4+really1.3.45+hg17696-1 · arm64 · trixie

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · 13

  • Source package: [graphicsmagick]

    Details (2)
    • 1.4+really1.3.45+hg17696-1 · amd64 · trixie

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · 13

    • 1.4+really1.3.45+hg17696-1 · arm64 · trixie

      Fixed · Fixed: 1.3.27-4

      dsa · graphicsmagick · debian · 13

Observed:

References