gd: Infinite loop in gdImageCreateFromGifCtx() in gd_gif_in.c
Published Jan 16, 2018
5.5
MEDIUMCVSS 3.0
EPSS 13.20%
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.
Affected products
No data.
Configuration 1
Configuration 2
- 7.0
- 8.0
Configuration 3
- 14.04
- 16.04
- 18.04
No data.
Red Hat Software Collections for Red Hat Enterprise Linux 6
rh-php70-php-0:7.0.27-1.el6
Fixed · RHSA-2018:1296
Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS
rh-php70-php-0:7.0.27-1.el6
Fixed · RHSA-2018:1296
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-php70-php-0:7.0.27-1.el7
Fixed · RHSA-2018:1296
Red Hat Software Collections for Red Hat Enterprise Linux 7
rh-php71-php-0:7.1.30-1.el7
Fixed · RHSA-2019:2519
Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS
rh-php70-php-0:7.0.27-1.el7
Fixed · RHSA-2018:1296
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
rh-php70-php-0:7.0.27-1.el7
Fixed · RHSA-2018:1296
Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS
rh-php71-php-0:7.1.30-1.el7
Fixed · RHSA-2019:2519
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
rh-php70-php-0:7.0.27-1.el7
Fixed · RHSA-2018:1296
Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS
rh-php71-php-0:7.1.30-1.el7
Fixed · RHSA-2019:2519
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS
rh-php71-php-0:7.1.30-1.el7
Fixed · RHSA-2019:2519
Red Hat Enterprise Linux 5
libwmf
Not affected
Red Hat Enterprise Linux 5
php
Will not fix
Red Hat Enterprise Linux 5
php53
Will not fix
Red Hat Enterprise Linux 6
gd
Out of support scope
Red Hat Enterprise Linux 6
libwmf
Not affected
Red Hat Enterprise Linux 6
php
Will not fix
Red Hat Enterprise Linux 7
gd
Fix deferred
Red Hat Enterprise Linux 7
libwmf
Not affected
Red Hat Enterprise Linux 7
php
Will not fix
Red Hat Enterprise Linux 8
gd
Fix deferred
Red Hat Enterprise Linux 8
php
Not affected
Red Hat Software Collections
rh-php56-php
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Software Collections for Red Hat Enterprise Linux 6 | rh-php70-php-0:7.0.27-1.el6 | Fixed | RHSA-2018:1296 |
| Red Hat Software Collections for Red Hat Enterprise Linux 6.7 EUS | rh-php70-php-0:7.0.27-1.el6 | Fixed | RHSA-2018:1296 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-php70-php-0:7.0.27-1.el7 | Fixed | RHSA-2018:1296 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7 | rh-php71-php-0:7.1.30-1.el7 | Fixed | RHSA-2019:2519 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.3 EUS | rh-php70-php-0:7.0.27-1.el7 | Fixed | RHSA-2018:1296 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | rh-php70-php-0:7.0.27-1.el7 | Fixed | RHSA-2018:1296 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.4 EUS | rh-php71-php-0:7.1.30-1.el7 | Fixed | RHSA-2019:2519 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | rh-php70-php-0:7.0.27-1.el7 | Fixed | RHSA-2018:1296 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.5 EUS | rh-php71-php-0:7.1.30-1.el7 | Fixed | RHSA-2019:2519 |
| Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUS | rh-php71-php-0:7.1.30-1.el7 | Fixed | RHSA-2019:2519 |
| Red Hat Enterprise Linux 5 | libwmf | Not affected | n/a |
| Red Hat Enterprise Linux 5 | php | Will not fix | n/a |
| Red Hat Enterprise Linux 5 | php53 | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | gd | Out of support scope | n/a |
| Red Hat Enterprise Linux 6 | libwmf | Not affected | n/a |
| Red Hat Enterprise Linux 6 | php | Will not fix | n/a |
| Red Hat Enterprise Linux 7 | gd | Fix deferred | n/a |
| Red Hat Enterprise Linux 7 | libwmf | Not affected | n/a |
| Red Hat Enterprise Linux 7 | php | Will not fix | n/a |
| Red Hat Enterprise Linux 8 | gd | Fix deferred | n/a |
| Red Hat Enterprise Linux 8 | php | Not affected | n/a |
| Red Hat Software Collections | rh-php56-php | Will not fix | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This vulnerability is rated as low severity because it causes an infinite loop, resulting in a denial of service, while it can exhaust server resources and impact availability, it does not pose a threat to system security or integrity.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
1 other source (Red Hat) ▾
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
AV:N/AC:M/Au:N/C:N/I:N/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 2, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (57 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 2, 2026 | 13.20% (0.13204) | 96.27th | v5 (v2026.06.15) |
| Sep 22, 2026 | 13.20% (0.13204) | 96.19th | v5 (v2026.06.15) |
| Sep 21, 2026 | 28.72% (0.28717) | 98.10th | v5 (v2026.06.15) |
| Sep 6, 2026 | 13.20% (0.13204) | 96.11th | v5 (v2026.06.15) |
| Sep 5, 2026 | 28.72% (0.28717) | 98.06th | v5 (v2026.06.15) |
| Aug 30, 2026 | 13.20% (0.13204) | 96.09th | v5 (v2026.06.15) |
| Aug 28, 2026 | 28.72% (0.28717) | 98.05th | v5 (v2026.06.15) |
| Aug 24, 2026 | 13.20% (0.13204) | 96.07th | v5 (v2026.06.15) |
| Aug 23, 2026 | 28.72% (0.28717) | 98.05th | v5 (v2026.06.15) |
| Jun 15, 2026 | 13.45% (0.13446) | 95.94th | v5 (v2026.06.15) |
| May 4, 2026 | 10.27% (0.10274) | 93.20th | v4 (v2025.03.14) |
| Mar 28, 2026 | 8.03% (0.08032) | 92.08th | v4 (v2025.03.14) |
| Mar 4, 2026 | 10.27% (0.10274) | 93.03th | v4 (v2025.03.14) |
| Mar 1, 2026 | 6.84% (0.06836) | 91.22th | v4 (v2025.03.14) |
| Feb 4, 2026 | 10.27% (0.10274) | 92.98th | v4 (v2025.03.14) |
| Feb 1, 2026 | 6.84% (0.06836) | 91.17th | v4 (v2025.03.14) |
| Jan 4, 2026 | 10.27% (0.10274) | 92.92th | v4 (v2025.03.14) |
| Jan 1, 2026 | 6.84% (0.06836) | 91.11th | v4 (v2025.03.14) |
| Dec 28, 2025 | 10.27% (0.10274) | 92.91th | v4 (v2025.03.14) |
| Dec 27, 2025 | 8.86% (0.08861) | 92.30th | v4 (v2025.03.14) |
| Dec 24, 2025 | 10.27% (0.10274) | 92.91th | v4 (v2025.03.14) |
| Dec 13, 2025 | 7.83% (0.07835) | 91.64th | v4 (v2025.03.14) |
| Dec 4, 2025 | 9.30% (0.09297) | 92.43th | v4 (v2025.03.14) |
| Dec 1, 2025 | 6.16% (0.06158) | 90.50th | v4 (v2025.03.14) |
| Nov 21, 2025 | 9.30% (0.09297) | 92.42th | v4 (v2025.03.14) |
| Nov 18, 2025 | 8.24% (0.08236) | 91.35th | v4 (v2025.03.14) |
| Nov 4, 2025 | 9.30% (0.09297) | 92.39th | v4 (v2025.03.14) |
| Nov 1, 2025 | 6.16% (0.06158) | 90.44th | v4 (v2025.03.14) |
| Oct 28, 2025 | 9.30% (0.09297) | 92.38th | v4 (v2025.03.14) |
| Oct 27, 2025 | 8.00% (0.08004) | 91.72th | v4 (v2025.03.14) |
| Oct 4, 2025 | 9.30% (0.09297) | 92.43th | v4 (v2025.03.14) |
| Oct 1, 2025 | 6.16% (0.06158) | 90.49th | v4 (v2025.03.14) |
| Sep 10, 2025 | 8.00% (0.08004) | 91.76th | v4 (v2025.03.14) |
| Sep 4, 2025 | 6.06% (0.06057) | 90.40th | v4 (v2025.03.14) |
| Sep 1, 2025 | 3.95% (0.03950) | 87.97th | v4 (v2025.03.14) |
| Aug 4, 2025 | 6.08% (0.06075) | 90.40th | v4 (v2025.03.14) |
| Aug 1, 2025 | 3.96% (0.03962) | 88.00th | v4 (v2025.03.14) |
| Jul 30, 2025 | 11.20% (0.11200) | 93.21th | v4 (v2025.03.14) |
| Jul 13, 2025 | 13.22% (0.13221) | 93.81th | v4 (v2025.03.14) |
| Jul 12, 2025 | 7.17% (0.07172) | 91.13th | v4 (v2025.03.14) |
| Jun 6, 2025 | 4.81% (0.04806) | 88.95th | v4 (v2025.03.14) |
| Jun 1, 2025 | 2.08% (0.02082) | 83.18th | v4 (v2025.03.14) |
| May 1, 2025 | 3.46% (0.03459) | 86.91th | v4 (v2025.03.14) |
| Apr 29, 2025 | 5.49% (0.05485) | 89.63th | v4 (v2025.03.14) |
| Mar 17, 2025 | 4.12% (0.04115) | 87.86th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.24% (0.00238) | 62.70th | v3 (v2023.03.01) |
| Mar 23, 2024 | 0.24% (0.00238) | 61.11th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.31% (0.00309) | 69.16th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.31% (0.00309) | 65.21th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.54% (0.01537) | 74.52th | v2 (v2022.01.01) |
| Feb 23, 2023 | 1.54% (0.01537) | 74.48th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.54% (0.01537) | 72.41th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.54% (0.01537) | 51.33th | v2 (v2022.01.01) |
| Feb 3, 2022 | 2.48% (0.02476) | 54.92th | v1 |
| Jan 6, 2022 | 2.48% (0.02476) | 54.49th | v1 |
| Sep 1, 2021 | 2.48% (0.02476) | 78.74th | v1 |
| Apr 14, 2021 | 2.48% (0.02476) | 0.00th | v1 |
References (15)
- http://php.net/ChangeLog-5.php x_refsource_CONFIRMRelease NotesVendor Advisory
- http://php.net/ChangeLog-7.php x_refsource_CONFIRMRelease NotesVendor Advisory
- https://access.redhat.com/errata/RHSA-2018:1296 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2019:2519 vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2018-5711 Vendor Advisory
- https://bugs.php.net/bug.php?id=75571 x_refsource_CONFIRMPatchVendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1535246 Issue Tracking
- https://lists.debian.org/debian-lts-announce/2018/01/msg00022.html mailing-listx_refsource_MLISTThird Party Advisory
- https://lists.debian.org/debian-lts-announce/2019/01/msg00028.html mailing-listx_refsource_MLISTThird Party Advisory
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/3CZ2QADQTKRHTGB2AHD7J4QQNDLBEMM6/ vendor-advisoryx_refsource_FEDORA
- https://nvd.nist.gov/vuln/detail/CVE-2018-5711
- https://security.gentoo.org/glsa/201903-18 vendor-advisoryx_refsource_GENTOOThird Party Advisory
- https://usn.ubuntu.com/3755-1/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2018-5711
- https://www.oracle.com/security-alerts/cpuapr2020.html x_refsource_MISC
Change history (0)
No recorded changes yet.