CVE catalog

CVE-2018-5711

libgd2: CVE-2018-5711

[CVE catalog]

Severity
Medium · CVSS 5.3CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Published
Source
[NVD] · [CVE record]
EPSS
13.20% · Oct 27, 2026

gd_gif_in.c in the GD Graphics Library (aka libgd), as used in PHP before 5.6.33, 7.0.x before 7.0.27, 7.1.x before 7.1.13, and 7.2.x before 7.2.1, has an integer signedness error that leads to an infinite loop via a crafted GIF file, as demonstrated by a call to the imagecreatefromgif or imagecreatefromstring PHP function. This is related to GetCode_ and gdImageCreateFromGifCtx.

Vulnerable and fixed packages

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

DistributionPackageReleaseVersionStatus
Debianlibgd2sid2.3.3-14fixed
Debianlibgd2forky2.3.3-14fixed
Debianlibgd2trixie2.3.3-14~deb13u1fixed
Debianlibgd2trixie-security2.3.3-14~deb13u1fixed
Debianlibgd2bookworm2.3.3-9fixed
Debianlibgd2bookworm-security2.3.3-9+deb12u1fixed
Alpinegd3.102.2.5-r2fixed
Alpinegd3.112.2.5-r2fixed
Alpinegd3.122.2.5-r2fixed
Alpinegd3.132.2.5-r2fixed
Alpinegd3.142.2.5-r2fixed
Alpinegd3.152.2.5-r2fixed
Alpinegd3.162.2.5-r2fixed
Alpinegd3.172.2.5-r2fixed
Alpinegd3.182.2.5-r2fixed
Alpinegd3.192.2.5-r2fixed
Alpinegd3.202.2.5-r2fixed
Alpinegd3.212.2.5-r2fixed
Alpinegd3.222.2.5-r2fixed
Alpinegd3.232.2.5-r2fixed
Alpinegd3.242.2.5-r2fixed
Alpinegd3.62.2.5-r2fixed
Alpinegd3.72.2.5-r2fixed
Alpinegd3.82.2.5-r2fixed
Alpinegd3.92.2.5-r2fixed
Alpinephp53.45.6.33-r0fixed
Alpinephp53.55.6.33-r0fixed
Ubuntulibgd214.042.1.0-2vulnerable
Ubuntulibgd214.042.1.0-3vulnerable
Ubuntulibgd214.042.1.0-3ubuntu0.1vulnerable
Ubuntulibgd214.042.1.0-3ubuntu0.2vulnerable
Ubuntulibgd214.042.1.0-3ubuntu0.3vulnerable
Ubuntulibgd214.042.1.0-3ubuntu0.5vulnerable
Ubuntulibgd214.042.1.0-3ubuntu0.6vulnerable
Ubuntulibgd214.042.1.0-3ubuntu0.7vulnerable
Ubuntulibgd214.042.1.0-3ubuntu0.8vulnerable
Ubuntulibgd214.042.1.0-3ubuntu0.10fixed
Ubuntulibgd216.042.1.1-4build1vulnerable
Ubuntulibgd216.042.1.1-4build2vulnerable
Ubuntulibgd216.042.1.1-4ubuntu0.16.04.1vulnerable
Ubuntulibgd216.042.1.1-4ubuntu0.16.04.2vulnerable
Ubuntulibgd216.042.1.1-4ubuntu0.16.04.3vulnerable
Ubuntulibgd216.042.1.1-4ubuntu0.16.04.5vulnerable
Ubuntulibgd216.042.1.1-4ubuntu0.16.04.6vulnerable
Ubuntulibgd216.042.1.1-4ubuntu0.16.04.7vulnerable
Ubuntulibgd216.042.1.1-4ubuntu0.16.04.8vulnerable
Ubuntulibgd216.042.1.1-4ubuntu0.16.04.10fixed
Ubuntulibgd218.042.2.5-3vulnerable
Ubuntulibgd218.042.2.5-4vulnerable
Ubuntulibgd218.042.2.5-4ubuntu0.2fixed
Susegdlinux enterprise software development kit 11 sp42.0.36.RC1-52.33.5.1fixed
Susegdlinux enterprise server 11 sp42.0.36.RC1-52.33.5.1fixed
Susegdlinux enterprise server for sap applications 11 sp42.0.36.RC1-52.33.5.1fixed
Susegdlinux enterprise desktop 12 sp22.1.0-24.6.1fixed
Susegdlinux enterprise desktop 12 sp32.1.0-24.6.1fixed
Susegdlinux enterprise server for raspberry pi 12 sp22.1.0-24.6.1fixed
Susegdlinux enterprise software development kit 12 sp22.1.0-24.6.1fixed
Susegdlinux enterprise software development kit 12 sp32.1.0-24.6.1fixed
Susegdlinux enterprise server 12 sp22.1.0-24.6.1fixed
Susegdlinux enterprise server for sap applications 12 sp22.1.0-24.6.1fixed
Susegdlinux enterprise server 12 sp32.1.0-24.6.1fixed
Susegdlinux enterprise server for sap applications 12 sp32.1.0-24.6.1fixed
Susegdlinux enterprise workstation extension 12 sp22.1.0-24.6.1fixed
Susegdlinux enterprise workstation extension 12 sp32.1.0-24.6.1fixed
Susephp5linux enterprise module for web and scripting 125.5.14-109.17.1fixed
Susephp5linux enterprise software development kit 12 sp25.5.14-109.17.1fixed
Susephp5linux enterprise software development kit 12 sp35.5.14-109.17.1fixed
Susephp7linux enterprise module for web and scripting 127.0.7-50.26.1fixed
Susephp7linux enterprise software development kit 12 sp27.0.7-50.26.1fixed
Susephp7linux enterprise software development kit 12 sp37.0.7-50.26.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianlibgd2sourcesid2.2.5-4.1not yet assignedNot reported[887485]
Debianlibgd2sourceforky2.2.5-4.1not yet assignedNot reported[887485]
Debianlibgd2sourcetrixie2.2.5-4.1not yet assignedNot reported[887485]
Debianlibgd2sourcebookworm2.2.5-4.1not yet assignedNot reported[887485]
Alpinegdapk3.102.2.5-r2Not reportedALPINE-CVE-2018-5711Not reported
Alpinegdapk3.112.2.5-r2Not reportedALPINE-CVE-2018-5711Not reported
Alpinegdapk3.122.2.5-r2Not reportedALPINE-CVE-2018-5711Not reported
Alpinegdapk3.132.2.5-r2Not reportedALPINE-CVE-2018-5711Not reported
Alpinegdapk3.142.2.5-r2Not reportedALPINE-CVE-2018-5711Not reported
Alpinegdapk3.152.2.5-r2Not reportedALPINE-CVE-2018-5711Not reported
Alpinegdapk3.162.2.5-r2Not reportedALPINE-CVE-2018-5711Not reported
Alpinegdapk3.172.2.5-r2Not reportedALPINE-CVE-2018-5711Not reported
Alpinegdapk3.182.2.5-r2Not reportedALPINE-CVE-2018-5711Not reported
Alpinegdapk3.192.2.5-r2Not reportedALPINE-CVE-2018-5711Not reported
Alpinegdapk3.202.2.5-r2Not reportedALPINE-CVE-2018-5711Not reported
Alpinegdapk3.212.2.5-r2Not reportedALPINE-CVE-2018-5711Not reported
Alpinegdapk3.222.2.5-r2Not reportedALPINE-CVE-2018-5711Not reported
Alpinegdapk3.232.2.5-r2Not reportedALPINE-CVE-2018-5711Not reported
Alpinegdapk3.242.2.5-r2Not reportedALPINE-CVE-2018-5711Not reported
Alpinegdapk3.62.2.5-r2Not reportedALPINE-CVE-2018-5711Not reported
Alpinegdapk3.72.2.5-r2Not reportedALPINE-CVE-2018-5711Not reported
Alpinegdapk3.82.2.5-r2Not reportedALPINE-CVE-2018-5711Not reported
Alpinegdapk3.92.2.5-r2Not reportedALPINE-CVE-2018-5711Not reported
Alpinephp5apk3.45.6.33-r0Not reportedALPINE-CVE-2018-5711Not reported
Alpinephp5apk3.55.6.33-r0Not reportedALPINE-CVE-2018-5711Not reported
Ubuntulibgd2deb14.042.1.0-3ubuntu0.10Not reportedUBUNTU-CVE-2018-5711Not reported
Ubuntulibgd2deb16.042.1.1-4ubuntu0.16.04.10Not reportedUBUNTU-CVE-2018-5711Not reported
Ubuntulibgd2deb18.042.2.5-4ubuntu0.2Not reportedUBUNTU-CVE-2018-5711Not reported
Susegdrpmlinux enterprise software development kit 11 sp42.0.36.RC1-52.33.5.1Not reportedSUSE-SU-2018:0235-1Not reported
Susegdrpmlinux enterprise server 11 sp42.0.36.RC1-52.33.5.1Not reportedSUSE-SU-2018:0235-1Not reported
Susegdrpmlinux enterprise server for sap applications 11 sp42.0.36.RC1-52.33.5.1Not reportedSUSE-SU-2018:0235-1Not reported
Susegdrpmlinux enterprise desktop 12 sp22.1.0-24.6.1Not reportedSUSE-SU-2018:0260-1Not reported
Susegdrpmlinux enterprise desktop 12 sp32.1.0-24.6.1Not reportedSUSE-SU-2018:0260-1Not reported
Susegdrpmlinux enterprise server for raspberry pi 12 sp22.1.0-24.6.1Not reportedSUSE-SU-2018:0260-1Not reported
Susegdrpmlinux enterprise software development kit 12 sp22.1.0-24.6.1Not reportedSUSE-SU-2018:0260-1Not reported
Susegdrpmlinux enterprise software development kit 12 sp32.1.0-24.6.1Not reportedSUSE-SU-2018:0260-1Not reported
Susegdrpmlinux enterprise server 12 sp22.1.0-24.6.1Not reportedSUSE-SU-2018:0260-1Not reported
Susegdrpmlinux enterprise server for sap applications 12 sp22.1.0-24.6.1Not reportedSUSE-SU-2018:0260-1Not reported
Susegdrpmlinux enterprise server 12 sp32.1.0-24.6.1Not reportedSUSE-SU-2018:0260-1Not reported
Susegdrpmlinux enterprise server for sap applications 12 sp32.1.0-24.6.1Not reportedSUSE-SU-2018:0260-1Not reported
Susegdrpmlinux enterprise workstation extension 12 sp22.1.0-24.6.1Not reportedSUSE-SU-2018:0260-1Not reported
Susegdrpmlinux enterprise workstation extension 12 sp32.1.0-24.6.1Not reportedSUSE-SU-2018:0260-1Not reported
Susephp5rpmlinux enterprise module for web and scripting 125.5.14-109.17.1Not reportedSUSE-SU-2018:0216-1Not reported
Susephp5rpmlinux enterprise software development kit 12 sp25.5.14-109.17.1Not reportedSUSE-SU-2018:0216-1Not reported
Susephp5rpmlinux enterprise software development kit 12 sp35.5.14-109.17.1Not reportedSUSE-SU-2018:0216-1Not reported
Susephp7rpmlinux enterprise module for web and scripting 127.0.7-50.26.1Not reportedSUSE-SU-2018:0308-1Not reported
Susephp7rpmlinux enterprise software development kit 12 sp27.0.7-50.26.1Not reportedSUSE-SU-2018:0308-1Not reported
Susephp7rpmlinux enterprise software development kit 12 sp37.0.7-50.26.1Not reportedSUSE-SU-2018:0308-1Not reported

[Debian bug #887485]

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • [libgd3]Unknown

    Source package: [libgd2]

    Details (4)
    • 2.3.3-9 · amd64 · bookworm

      Fixed · Fixed: 2.2.5-4.1

      dsa · libgd2 · debian · bookworm; dsa · libgd2 · debian · 12

    • 2.3.3-9 · arm64 · bookworm

      Fixed · Fixed: 2.2.5-4.1

      dsa · libgd2 · debian · bookworm; dsa · libgd2 · debian · 12

    • 2.3.3-9+deb12u1 · amd64 · bookworm-security

      Fixed · Fixed: 2.2.5-4.1

      dsa · libgd2 · debian · bookworm; dsa · libgd2 · debian · 12

    • 2.3.3-9+deb12u1 · arm64 · bookworm-security

      Fixed · Fixed: 2.2.5-4.1

      dsa · libgd2 · debian · bookworm; dsa · libgd2 · debian · 12

  • [libgd-dev]Unknown

    Source package: [libgd2]

    Details (4)
    • 2.3.3-9 · amd64 · bookworm

      Fixed · Fixed: 2.2.5-4.1

      dsa · libgd2 · debian · bookworm; dsa · libgd2 · debian · 12

    • 2.3.3-9 · arm64 · bookworm

      Fixed · Fixed: 2.2.5-4.1

      dsa · libgd2 · debian · bookworm; dsa · libgd2 · debian · 12

    • 2.3.3-9+deb12u1 · amd64 · bookworm-security

      Fixed · Fixed: 2.2.5-4.1

      dsa · libgd2 · debian · bookworm; dsa · libgd2 · debian · 12

    • 2.3.3-9+deb12u1 · arm64 · bookworm-security

      Fixed · Fixed: 2.2.5-4.1

      dsa · libgd2 · debian · bookworm; dsa · libgd2 · debian · 12

  • [libgd-tools]Unknown

    Source package: [libgd2]

    Details (4)
    • 2.3.3-9 · amd64 · bookworm

      Fixed · Fixed: 2.2.5-4.1

      dsa · libgd2 · debian · bookworm; dsa · libgd2 · debian · 12

    • 2.3.3-9 · arm64 · bookworm

      Fixed · Fixed: 2.2.5-4.1

      dsa · libgd2 · debian · bookworm; dsa · libgd2 · debian · 12

    • 2.3.3-9+deb12u1 · amd64 · bookworm-security

      Fixed · Fixed: 2.2.5-4.1

      dsa · libgd2 · debian · bookworm; dsa · libgd2 · debian · 12

    • 2.3.3-9+deb12u1 · arm64 · bookworm-security

      Fixed · Fixed: 2.2.5-4.1

      dsa · libgd2 · debian · bookworm; dsa · libgd2 · debian · 12

[Debian 13 (Trixie)]

  • [libgd3]Unknown

    Source package: [libgd2]

    Details (4)
    • 2.3.3-13 · amd64 · trixie

      Fixed · Fixed: 2.2.5-4.1

      dsa · libgd2 · debian · 13

    • 2.3.3-13 · arm64 · trixie

      Fixed · Fixed: 2.2.5-4.1

      dsa · libgd2 · debian · 13

    • 2.3.3-14~deb13u1 · amd64 · trixie-security

      Fixed · Fixed: 2.2.5-4.1

      dsa · libgd2 · debian · 13

    • 2.3.3-14~deb13u1 · arm64 · trixie-security

      Fixed · Fixed: 2.2.5-4.1

      dsa · libgd2 · debian · 13

  • [libgd-dev]Unknown

    Source package: [libgd2]

    Details (4)
    • 2.3.3-13 · amd64 · trixie

      Fixed · Fixed: 2.2.5-4.1

      dsa · libgd2 · debian · 13

    • 2.3.3-13 · arm64 · trixie

      Fixed · Fixed: 2.2.5-4.1

      dsa · libgd2 · debian · 13

    • 2.3.3-14~deb13u1 · amd64 · trixie-security

      Fixed · Fixed: 2.2.5-4.1

      dsa · libgd2 · debian · 13

    • 2.3.3-14~deb13u1 · arm64 · trixie-security

      Fixed · Fixed: 2.2.5-4.1

      dsa · libgd2 · debian · 13

  • [libgd-tools]Unknown

    Source package: [libgd2]

    Details (4)
    • 2.3.3-13 · amd64 · trixie

      Fixed · Fixed: 2.2.5-4.1

      dsa · libgd2 · debian · 13

    • 2.3.3-13 · arm64 · trixie

      Fixed · Fixed: 2.2.5-4.1

      dsa · libgd2 · debian · 13

    • 2.3.3-14~deb13u1 · amd64 · trixie-security

      Fixed · Fixed: 2.2.5-4.1

      dsa · libgd2 · debian · 13

    • 2.3.3-14~deb13u1 · arm64 · trixie-security

      Fixed · Fixed: 2.2.5-4.1

      dsa · libgd2 · debian · 13

Observed:

References