CVE-2019-6977 Memory corruption in n/a

High 8.8 Published Updated

Heap-based buffer overflow in LibGD allows attackers to execute arbitrary code or cause denial of service via crafted image data.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2019-6977?

CVE-2019-6977 is a high-severity memory corruption vulnerability in Canonical Ubuntu Linux, published on 27 Jan 2019. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

gdImageColorMatch in gd_color_match.c in the GD Graphics Library (aka LibGD) 2.2.5, as used in the imagecolormatch function in PHP before 5.6.40, 7.x before 7.1.26, 7.2.x before 7.2.14, and 7.3.x before 7.3.1, has a heap-based buffer overflow. This can be exploited by an attacker who is able to trigger imagecolormatch calls with crafted image data.

Weakness: CWE-787

Which versions are affected by CVE-2019-6977?

It affects 5 products.

Linux distribution packages (4)
php5 SUSE:Linux Enterprise Module for Web and Scripting 12All versions5.5.14-109.48.1
php5 SUSE:Linux Enterprise Software Development Kit 12 SP3All versions5.5.14-109.48.1
php5 SUSE:Linux Enterprise Software Development Kit 12 SP4All versions5.5.14-109.48.1
perl-GD openSUSE:TumbleweedAll versions2.76-1.1

Products include Canonical Ubuntu Linux, Debian Debian Linux, Libgd Libgd, Netapp Storage Automation Store, Php Php.

How do I fix CVE-2019-6977?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2019-6977 being exploited?

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

Public exploit code: 1 Exploit-DB entry and 1 proofs of concept on GitHub.

All Canonical Ubuntu Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2019-6977, DEBIAN-CVE-2019-6977, GHSA-3jrx-xgc5-h2f9, SUSE-SU-2019:0449-1, UBUNTU-CVE-2019-6977, openSUSE-SU-2024:11852-1.

Is CVE-2019-6977 in your software?

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

Check your SBOMs for free