CVE-2018-5711 Denial of service in n/a

Medium 5.5 Published Updated

An attacker can cause a denial of service via infinite loop in libgd when processing crafted GIF files, affecting PHP applications.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2018-5711?

CVE-2018-5711 is a medium-severity denial of service vulnerability in Canonical Ubuntu Linux, published on 16 Jan 2018. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-835, CWE-681

Which versions are affected by CVE-2018-5711?

It affects 3 products.

Linux distribution packages (14)
gd SUSE:Linux Enterprise Desktop 12 SP2All versions2.1.0-24.6.1
gd SUSE:Linux Enterprise Desktop 12 SP3All versions2.1.0-24.6.1
gd SUSE:Linux Enterprise Server 11 SP4All versions2.0.36.RC1-52.33.5.1
gd SUSE:Linux Enterprise Server 12 SP2All versions2.1.0-24.6.1
gd SUSE:Linux Enterprise Server 12 SP3All versions2.1.0-24.6.1
gd SUSE:Linux Enterprise Server for Raspberry Pi 12 SP2All versions2.1.0-24.6.1
gd SUSE:Linux Enterprise Server for SAP Applications 11 SP4All versions2.0.36.RC1-52.33.5.1
gd SUSE:Linux Enterprise Server for SAP Applications 12 SP2All versions2.1.0-24.6.1
gd SUSE:Linux Enterprise Server for SAP Applications 12 SP3All versions2.1.0-24.6.1
gd SUSE:Linux Enterprise Software Development Kit 11 SP4All versions2.0.36.RC1-52.33.5.1
gd SUSE:Linux Enterprise Software Development Kit 12 SP2All versions2.1.0-24.6.1
gd SUSE:Linux Enterprise Software Development Kit 12 SP3All versions2.1.0-24.6.1
gd SUSE:Linux Enterprise Workstation Extension 12 SP2All versions2.1.0-24.6.1
gd SUSE:Linux Enterprise Workstation Extension 12 SP3All versions2.1.0-24.6.1

Products include Canonical Ubuntu Linux, Debian Debian Linux, Php Php.

How do I fix CVE-2018-5711?

Upgrade to a fixed version.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2018-5711 being exploited?

There is no known exploitation of CVE-2018-5711 in the wild and no public exploit code.

Public exploit code: 2 proofs of concept on GitHub.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2018-5711, DEBIAN-CVE-2018-5711, DLA-1248-1, GHSA-qwqg-rff2-45cw, SUSE-SU-2018:0235-1, SUSE-SU-2018:0260-1 and 1 more.

Is CVE-2018-5711 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free