Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2018-5711

published

gd: Infinite loop in gdImageCreateFromGifCtx() in gd_gif_in.c

Title from Red Hat VEX

Published
16 Jan 2018, 09:00:00 UTC
Updated
05 Aug 2024, 05:40:51 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
n/a — n/an/a Affected Not stated mitre
Amazon Linux AL2 Release evaluation Not Affected; No Fix Planned Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Alpine Linux edge gd Fixed 2.2.5-r2 Package fix record
Debian jessie libgd2 Advisory build 2.1.0-5+deb8u12 DLA-1651-1
Red Hat Enterprise Linux RHEL-6 rh-php70-phpsrc Advisory build 7.0.27-1.el6 RHSA-2018:1296
Alpine Linux v3.10 gd Fixed 2.2.5-r2 Package fix record
Alpine Linux v3.11 gd Fixed 2.2.5-r2 Package fix record
Show 95 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Alpine Linux v3.12 gd Fixed 2.2.5-r2 Package fix record
Alpine Linux v3.13 gd Fixed 2.2.5-r2 Package fix record
Alpine Linux v3.14 gd Fixed 2.2.5-r2 Package fix record
Alpine Linux v3.15 gd Fixed 2.2.5-r2 Package fix record
Alpine Linux v3.16 gd Fixed 2.2.5-r2 Package fix record
Alpine Linux v3.17 gd Fixed 2.2.5-r2 Package fix record
Alpine Linux v3.18 gd Fixed 2.2.5-r2 Package fix record
Alpine Linux v3.19 gd Fixed 2.2.5-r2 Package fix record
Alpine Linux v3.20 gd Fixed 2.2.5-r2 Package fix record
Alpine Linux v3.21 gd Fixed 2.2.5-r2 Package fix record
Alpine Linux v3.22 gd Fixed 2.2.5-r2 Package fix record
Alpine Linux v3.23 gd Fixed 2.2.5-r2 Package fix record
Alpine Linux v3.24 gd Fixed 2.2.5-r2 Package fix record
Alpine Linux v3.4 php5 Fixed 5.6.33-r0 Package fix record
Alpine Linux v3.5 php5 Fixed 5.6.33-r0 Package fix record
Alpine Linux v3.5 php7 Fixed 7.0.27-r0 Package fix record
Alpine Linux v3.6 gd Fixed 2.2.5-r2 Package fix record
Alpine Linux v3.6 php5 Fixed 5.6.33-r0 Package fix record
Alpine Linux v3.6 php7 Fixed 7.1.13-r0 Package fix record
Alpine Linux v3.7 gd Fixed 2.2.5-r2 Package fix record
Alpine Linux v3.7 php5 Fixed 5.6.33-r0 Package fix record
Alpine Linux v3.7 php7 Fixed 7.1.13-r0 Package fix record
Alpine Linux v3.8 gd Fixed 2.2.5-r2 Package fix record
Alpine Linux v3.8 php5 Fixed 5.6.33-r0 Package fix record
Alpine Linux v3.9 gd Fixed 2.2.5-r2 Package fix record
Debian jessie php5 Advisory build 5.6.33+dfsg-0+deb8u1 DSA-4081-1
Debian stretch php7.0 Advisory build 7.0.27-0+deb9u1 DSA-4080-1
Debian wheezy libgd2 Advisory build 2.0.36~rc1~dfsg-6.1+deb7u11 DLA-1248-1
Red Hat Enterprise Linux RHEL-6 rh-php70-phpx86_64 Advisory build 7.0.27-1.el6 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-6 rh-php70-php-bcmathx86_64 Advisory build 7.0.27-1.el6 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-6 rh-php70-php-clix86_64 Advisory build 7.0.27-1.el6 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-6 rh-php70-php-commonx86_64 Advisory build 7.0.27-1.el6 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-6 rh-php70-php-dbax86_64 Advisory build 7.0.27-1.el6 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-6 rh-php70-php-dbgx86_64 Advisory build 7.0.27-1.el6 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-6 rh-php70-php-debuginfox86_64 Advisory build 7.0.27-1.el6 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-6 rh-php70-php-develx86_64 Advisory build 7.0.27-1.el6 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-6 rh-php70-php-embeddedx86_64 Advisory build 7.0.27-1.el6 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-6 rh-php70-php-enchantx86_64 Advisory build 7.0.27-1.el6 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-6 rh-php70-php-fpmx86_64 Advisory build 7.0.27-1.el6 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-6 rh-php70-php-gdx86_64 Advisory build 7.0.27-1.el6 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-6 rh-php70-php-gmpx86_64 Advisory build 7.0.27-1.el6 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-6 rh-php70-php-imapx86_64 Advisory build 7.0.27-1.el6 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-6 rh-php70-php-intlx86_64 Advisory build 7.0.27-1.el6 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-6 rh-php70-php-jsonx86_64 Advisory build 7.0.27-1.el6 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-6 rh-php70-php-ldapx86_64 Advisory build 7.0.27-1.el6 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-6 rh-php70-php-mbstringx86_64 Advisory build 7.0.27-1.el6 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-6 rh-php70-php-mysqlndx86_64 Advisory build 7.0.27-1.el6 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-6 rh-php70-php-odbcx86_64 Advisory build 7.0.27-1.el6 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-6 rh-php70-php-opcachex86_64 Advisory build 7.0.27-1.el6 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-6 rh-php70-php-pdox86_64 Advisory build 7.0.27-1.el6 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-6 rh-php70-php-pgsqlx86_64 Advisory build 7.0.27-1.el6 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-6 rh-php70-php-processx86_64 Advisory build 7.0.27-1.el6 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-6 rh-php70-php-pspellx86_64 Advisory build 7.0.27-1.el6 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-6 rh-php70-php-recodex86_64 Advisory build 7.0.27-1.el6 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-6 rh-php70-php-snmpx86_64 Advisory build 7.0.27-1.el6 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-6 rh-php70-php-soapx86_64 Advisory build 7.0.27-1.el6 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-6 rh-php70-php-tidyx86_64 Advisory build 7.0.27-1.el6 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-6 rh-php70-php-xmlx86_64 Advisory build 7.0.27-1.el6 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-6 rh-php70-php-xmlrpcx86_64 Advisory build 7.0.27-1.el6 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-6 rh-php70-php-zipx86_64 Advisory build 7.0.27-1.el6 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-7 rh-php70-phpsrc Advisory build 7.0.27-1.el7 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-7 rh-php70-phpx86_64 Advisory build 7.0.27-1.el7 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-7 rh-php70-php-bcmathx86_64 Advisory build 7.0.27-1.el7 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-7 rh-php70-php-clix86_64 Advisory build 7.0.27-1.el7 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-7 rh-php70-php-commonx86_64 Advisory build 7.0.27-1.el7 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-7 rh-php70-php-dbax86_64 Advisory build 7.0.27-1.el7 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-7 rh-php70-php-dbgx86_64 Advisory build 7.0.27-1.el7 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-7 rh-php70-php-debuginfox86_64 Advisory build 7.0.27-1.el7 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-7 rh-php70-php-develx86_64 Advisory build 7.0.27-1.el7 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-7 rh-php70-php-embeddedx86_64 Advisory build 7.0.27-1.el7 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-7 rh-php70-php-enchantx86_64 Advisory build 7.0.27-1.el7 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-7 rh-php70-php-fpmx86_64 Advisory build 7.0.27-1.el7 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-7 rh-php70-php-gdx86_64 Advisory build 7.0.27-1.el7 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-7 rh-php70-php-gmpx86_64 Advisory build 7.0.27-1.el7 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-7 rh-php70-php-intlx86_64 Advisory build 7.0.27-1.el7 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-7 rh-php70-php-jsonx86_64 Advisory build 7.0.27-1.el7 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-7 rh-php70-php-ldapx86_64 Advisory build 7.0.27-1.el7 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-7 rh-php70-php-mbstringx86_64 Advisory build 7.0.27-1.el7 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-7 rh-php70-php-mysqlndx86_64 Advisory build 7.0.27-1.el7 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-7 rh-php70-php-odbcx86_64 Advisory build 7.0.27-1.el7 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-7 rh-php70-php-opcachex86_64 Advisory build 7.0.27-1.el7 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-7 rh-php70-php-pdox86_64 Advisory build 7.0.27-1.el7 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-7 rh-php70-php-pgsqlx86_64 Advisory build 7.0.27-1.el7 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-7 rh-php70-php-processx86_64 Advisory build 7.0.27-1.el7 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-7 rh-php70-php-pspellx86_64 Advisory build 7.0.27-1.el7 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-7 rh-php70-php-recodex86_64 Advisory build 7.0.27-1.el7 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-7 rh-php70-php-snmpx86_64 Advisory build 7.0.27-1.el7 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-7 rh-php70-php-soapx86_64 Advisory build 7.0.27-1.el7 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-7 rh-php70-php-xmlx86_64 Advisory build 7.0.27-1.el7 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-7 rh-php70-php-xmlrpcx86_64 Advisory build 7.0.27-1.el7 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-7 rh-php70-php-zipx86_64 Advisory build 7.0.27-1.el7 RHSA-2018:1296
Red Hat Enterprise Linux RHEL-7 rh-php71-phpaarch64 Advisory build 7.1.30-1.el7 RHSA-2019:2519
Red Hat Enterprise Linux RHEL-7 rh-php71-phpppc64le Advisory build 7.1.30-1.el7 RHSA-2019:2519
Red Hat Enterprise Linux RHEL-7 rh-php71-phps390x Advisory build 7.1.30-1.el7 RHSA-2019:2519
Red Hat Enterprise Linux RHEL-7 rh-php71-phpsrc Advisory build 7.1.30-1.el7 RHSA-2019:2519

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

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.

en · mitre · cna

Vendor advisories explicitly linked to this CVE.

54

Assessment

CVSS risk assessment and additional context for this vulnerability.

No normalized assessments.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
n/a n/a n/a (affected) mitre · cna

Weaknesses

1
  • n/a (mitre · cna)

References

11

Provider assertions

2

mitre · cna

CVE · adp

CVE Program Container

Provenance

Schema
5.1
Searchable
yes
Content hash
6d1e5cf9c9c3015d33641fb7e57b0b37f8c01d762df775554f222bb906723531
Ingested
23 Sep 2026, 07:44:52 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected