Skip to content
Fencer Vulns
medium 6.5

CVE-2016-6161 json

The output function in gd_gif_out.c in the GD Graphics Library (aka libgd) allows remote attackers to cause a denial of service (out-of-bou…

published 2016-08-12 10 y ago modified 2026-06-17 4 mo ago also EUVD-2016-7095

cvss
6.5
version 3.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
2.9%
EPSS 2.9% chance of exploitation in 30 days, percentile 86%
public exploits
0
none known

Summary

The output function in gd_gif_out.c in the GD Graphics Library (aka libgd) allows remote attackers to cause a denial of service (out-of-bounds read) via a crafted image.

Patch / fix

  • libgd2 Debian 14, Debian 13, Debian 12 2.2.1-1

debian advisories DEBIAN-CVE-2016-6161

  • libgd2 Ubuntu 14.04 LTS 2.1.0-3ubuntu0.2
  • libgd2 Ubuntu 16.04 LTS 2.1.1-4ubuntu0.16.04.2

ubuntu advisories UBUNTU-CVE-2016-6161

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • php7 SLE Software Development Kit 12 SP1, SLE Module for Web and Scripting 12 7.0.7-15.1
  • php5 SLE Software Development Kit 12 SP1, SLE Module for Web and Scripting 12 5.5.14-73.1
  • gd SLES for SAP 12 SP1, SLES 12 SP1, SLED 12 SP1 +2 more 2.1.0-12.1
  • gd SLES for SAP 11 SP4, SLES 11 SP4, SLE Software Development Kit 11 SP4 2.0.36.RC1-52.22.1

suse advisories SUSE-SU-2016:2460-1SUSE-SU-2016:2460-2SUSE-SU-2016:2408-1SUSE-SU-2016:2303-1SUSE-SU-2016:2302-1

  • gd Alpine 3.3, Alpine 3.2 2.2.1-r2

alpine advisories ALPINE-CVE-2016-6161

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2016-6161 updated cvss 5.9

gd: Global out-of-bounds read when encoding gif from malformed gd2 input

  • Red Hat Enterprise Linux 5 gd, php, php53 Red Hat Enterprise Linux 6 gd, php, php-gd, php-cli, php-dba, php-fpm, +22 more Red Hat Enterprise Linux 7 gd, php, php-gd, php-cli, php-dba, php-fpm, +20 more Red Hat OpenShift Enterprise 2 php Red Hat Software Collections php54-php, php55-php, php54-php-gd, php55-php-gd, rh-php56-php, php54-php-cli, +72 more
    affected: no fix planned “Will not fix”
  • Red Hat Enterprise Linux 5 tetex Red Hat Enterprise Linux 6 mendexk, texlive, graphviz, kpathsea, graphviz-gd, texlive-afm, +16 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Exploit prediction

2.89% chance of exploitation in the next 30 days, higher than 86% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
NVD 3.0 6.5 CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
NVD 2.0 4.3 AV:N/AC:M/Au:N/C:N/I:N/A:P

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.