CVE-2019-6977
Fixed in a distro release EPSS 71%
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.
Products: libgd, php, debian_linux, canonical ubuntu_linux, netapp storage_automation_store
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| AlmaLinux 8 | gd | 2.2.5-7.el8 |
| AlmaLinux 8 | gd-devel | 2.2.5-7.el8 |
| Alpine 3.10 | gd | 2.2.5-r2 |
| Alpine 3.11 | gd | 2.2.5-r2 |
| Alpine 3.12 | gd | 2.2.5-r2 |
| Alpine 3.13 | gd | 2.2.5-r2 |
| Alpine 3.14 | gd | 2.2.5-r2 |
| Alpine 3.15 | gd | 2.2.5-r2 |
| Alpine 3.16 | gd | 2.2.5-r2 |
| Alpine 3.17 | gd | 2.2.5-r2 |
| Alpine 3.18 | gd | 2.2.5-r2 |
| Alpine 3.19 | gd | 2.2.5-r2 |
| Alpine 3.20 | gd | 2.2.5-r2 |
| Alpine 3.21 | gd | 2.2.5-r2 |
| Alpine 3.22 | gd | 2.2.5-r2 |
| Alpine 3.23 | gd | 2.2.5-r2 |
| Alpine 3.24 | gd | 2.2.5-r2 |
| Alpine 3.6 | gd | 2.2.5-r2 |
| Alpine 3.7 | gd | 2.2.5-r2 |
| Alpine 3.8 | gd | 2.2.5-r2 |
| Alpine 3.9 | gd | 2.2.5-r2 |
| Arch Linux | gd | 2.2.5-2 |
| Debian 12 | libgd2 | 2.2.5-5.1 |
| Debian 13 | libgd2 | 2.2.5-5.1 |
| Debian 14 | libgd2 | 2.2.5-5.1 |
| Debian 8 | libgd2 | 2.1.0-5+deb8u12 |
| Debian 8 | php5 | 5.6.40+dfsg-0+deb8u1 |
| Debian 9 | libgd2 | 2.2.4-2+deb9u4 |
| Red Hat Enterprise Linux 8 | gd | 0:2.2.5-7.el8 |
| Red Hat Enterprise Linux 8 | gd-debuginfo | 0:2.2.5-7.el8 |
| Red Hat Enterprise Linux 8 | gd-debugsource | 0:2.2.5-7.el8 |
| Red Hat Enterprise Linux 8 | gd-devel | 0:2.2.5-7.el8 |
| Red Hat Enterprise Linux 8 | gd-progs-debuginfo | 0:2.2.5-7.el8 |
| Red Hat rhel software collections 3 | rh-php71-php | 0:7.1.30-1.el7 |
| Red Hat rhel software collections 3 | rh-php71-php-bcmath | 0:7.1.30-1.el7 |
| Red Hat rhel software collections 3 | rh-php71-php-cli | 0:7.1.30-1.el7 |
| Red Hat rhel software collections 3 | rh-php71-php-common | 0:7.1.30-1.el7 |
| Red Hat rhel software collections 3 | rh-php71-php-dba | 0:7.1.30-1.el7 |
| Red Hat rhel software collections 3 | rh-php71-php-dbg | 0:7.1.30-1.el7 |
| Red Hat rhel software collections 3 | rh-php71-php-debuginfo | 0:7.1.30-1.el7 |
| Red Hat rhel software collections 3 | rh-php71-php-devel | 0:7.1.30-1.el7 |
| Red Hat rhel software collections 3 | rh-php71-php-embedded | 0:7.1.30-1.el7 |
| Red Hat rhel software collections 3 | rh-php71-php-enchant | 0:7.1.30-1.el7 |
| Red Hat rhel software collections 3 | rh-php71-php-fpm | 0:7.1.30-1.el7 |
| Red Hat rhel software collections 3 | rh-php71-php-gd | 0:7.1.30-1.el7 |
| Red Hat rhel software collections 3 | rh-php71-php-gmp | 0:7.1.30-1.el7 |
| Red Hat rhel software collections 3 | rh-php71-php-intl | 0:7.1.30-1.el7 |
| Red Hat rhel software collections 3 | rh-php71-php-json | 0:7.1.30-1.el7 |
| Red Hat rhel software collections 3 | rh-php71-php-ldap | 0:7.1.30-1.el7 |
| Red Hat rhel software collections 3 | rh-php71-php-mbstring | 0:7.1.30-1.el7 |
| Red Hat rhel software collections 3 | rh-php71-php-mysqlnd | 0:7.1.30-1.el7 |
| Red Hat rhel software collections 3 | rh-php71-php-odbc | 0:7.1.30-1.el7 |
| Red Hat rhel software collections 3 | rh-php71-php-opcache | 0:7.1.30-1.el7 |
| Red Hat rhel software collections 3 | rh-php71-php-pdo | 0:7.1.30-1.el7 |
| Red Hat rhel software collections 3 | rh-php71-php-pgsql | 0:7.1.30-1.el7 |
| Red Hat rhel software collections 3 | rh-php71-php-process | 0:7.1.30-1.el7 |
| Red Hat rhel software collections 3 | rh-php71-php-pspell | 0:7.1.30-1.el7 |
| Red Hat rhel software collections 3 | rh-php71-php-recode | 0:7.1.30-1.el7 |
| Red Hat rhel software collections 3 | rh-php71-php-snmp | 0:7.1.30-1.el7 |
| Red Hat rhel software collections 3 | rh-php71-php-soap | 0:7.1.30-1.el7 |
| Red Hat rhel software collections 3 | rh-php71-php-xml | 0:7.1.30-1.el7 |
| Red Hat rhel software collections 3 | rh-php71-php-xmlrpc | 0:7.1.30-1.el7 |
| Red Hat rhel software collections 3 | rh-php71-php-zip | 0:7.1.30-1.el7 |
| Red Hat rhel software collections 3 | rh-php72-php | 0:7.2.24-1.el7 |
| Red Hat rhel software collections 3 | rh-php72-php-bcmath | 0:7.2.24-1.el7 |
| Red Hat rhel software collections 3 | rh-php72-php-cli | 0:7.2.24-1.el7 |
| Red Hat rhel software collections 3 | rh-php72-php-common | 0:7.2.24-1.el7 |
| Red Hat rhel software collections 3 | rh-php72-php-dba | 0:7.2.24-1.el7 |
| Red Hat rhel software collections 3 | rh-php72-php-dbg | 0:7.2.24-1.el7 |
| Red Hat rhel software collections 3 | rh-php72-php-debuginfo | 0:7.2.24-1.el7 |
| Red Hat rhel software collections 3 | rh-php72-php-devel | 0:7.2.24-1.el7 |
| Red Hat rhel software collections 3 | rh-php72-php-embedded | 0:7.2.24-1.el7 |
| Red Hat rhel software collections 3 | rh-php72-php-enchant | 0:7.2.24-1.el7 |
| Red Hat rhel software collections 3 | rh-php72-php-fpm | 0:7.2.24-1.el7 |
| Red Hat rhel software collections 3 | rh-php72-php-gd | 0:7.2.24-1.el7 |
| Red Hat rhel software collections 3 | rh-php72-php-gmp | 0:7.2.24-1.el7 |
| Red Hat rhel software collections 3 | rh-php72-php-intl | 0:7.2.24-1.el7 |
| Red Hat rhel software collections 3 | rh-php72-php-json | 0:7.2.24-1.el7 |
| Red Hat rhel software collections 3 | rh-php72-php-ldap | 0:7.2.24-1.el7 |
| Red Hat rhel software collections 3 | rh-php72-php-mbstring | 0:7.2.24-1.el7 |
| Red Hat rhel software collections 3 | rh-php72-php-mysqlnd | 0:7.2.24-1.el7 |
| Red Hat rhel software collections 3 | rh-php72-php-odbc | 0:7.2.24-1.el7 |
| Red Hat rhel software collections 3 | rh-php72-php-opcache | 0:7.2.24-1.el7 |
| Red Hat rhel software collections 3 | rh-php72-php-pdo | 0:7.2.24-1.el7 |
| Red Hat rhel software collections 3 | rh-php72-php-pgsql | 0:7.2.24-1.el7 |
| Red Hat rhel software collections 3 | rh-php72-php-process | 0:7.2.24-1.el7 |
| Red Hat rhel software collections 3 | rh-php72-php-pspell | 0:7.2.24-1.el7 |
| Red Hat rhel software collections 3 | rh-php72-php-recode | 0:7.2.24-1.el7 |
| Red Hat rhel software collections 3 | rh-php72-php-snmp | 0:7.2.24-1.el7 |
| Red Hat rhel software collections 3 | rh-php72-php-soap | 0:7.2.24-1.el7 |
| Red Hat rhel software collections 3 | rh-php72-php-xml | 0:7.2.24-1.el7 |
| Red Hat rhel software collections 3 | rh-php72-php-xmlrpc | 0:7.2.24-1.el7 |
| Red Hat rhel software collections 3 | rh-php72-php-zip | 0:7.2.24-1.el7 |
| Rocky Linux 8 | gd | 0:2.2.5-7.el8 |
| SUSE Linux Enterprise Desktop 12 SP3 | gd | 2.1.0-24.12.1 |
| SUSE Linux Enterprise Desktop 12 SP4 | gd | 2.1.0-24.12.1 |
| SUSE Linux Enterprise Module for Basesystem 15 | gd | 2.2.5-4.6.1 |
| SUSE Linux Enterprise Module for Desktop Applications 15 | gd | 2.2.5-4.6.1 |
| SUSE Linux Enterprise Module for Web and Scripting 12 | php5 | 5.5.14-109.48.1 |
| SUSE Linux Enterprise Module for Web and Scripting 12 | php7 | 7.0.7-50.63.1 |
| SUSE Linux Enterprise Server 11 SP4 | php53 | 5.3.17-112.53.1 |
| SUSE Linux Enterprise Server 12 SP3 | gd | 2.1.0-24.12.1 |
| SUSE Linux Enterprise Server 12 SP4 | gd | 2.1.0-24.12.1 |
| SUSE Linux Enterprise Server for SAP Applications 11 SP4 | php53 | 5.3.17-112.53.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP3 | gd | 2.1.0-24.12.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP4 | gd | 2.1.0-24.12.1 |
| SUSE Linux Enterprise Software Development Kit 11 SP4 | php53 | 5.3.17-112.53.1 |
| SUSE Linux Enterprise Software Development Kit 12 SP3 | gd | 2.1.0-24.12.1 |
| SUSE Linux Enterprise Software Development Kit 12 SP3 | php5 | 5.5.14-109.48.1 |
| SUSE Linux Enterprise Software Development Kit 12 SP3 | php7 | 7.0.7-50.63.1 |
| SUSE Linux Enterprise Software Development Kit 12 SP4 | gd | 2.1.0-24.12.1 |
| SUSE Linux Enterprise Software Development Kit 12 SP4 | php5 | 5.5.14-109.48.1 |
| SUSE Linux Enterprise Software Development Kit 12 SP4 | php7 | 7.0.7-50.63.1 |
| SUSE Linux Enterprise Workstation Extension 12 SP3 | gd | 2.1.0-24.12.1 |
| SUSE Linux Enterprise Workstation Extension 12 SP4 | gd | 2.1.0-24.12.1 |
| Ubuntu 14.04 LTS | libgd2 | 2.1.0-3ubuntu0.11 |
| Ubuntu 16.04 LTS | libgd2 | 2.1.1-4ubuntu0.16.04.11 |
| Ubuntu 18.04 LTS | libgd2 | 2.2.5-4ubuntu0.3 |
| openSUSE Leap 15.0 | gd | 2.2.5-lp150.8.1 |
| openSUSE Tumbleweed | gd | 2.3.3-1.1 |
| openSUSE Tumbleweed | perl-GD | 2.76-1.1 |