Every CVE Search/ Get API key

CVE-2016-1903

The gdImageRotateInterpolated function in ext/gd/libgd/gd_interpolation.c in PHP before 5.5.31, 5...

9.1 CriticalFix available

The gdImageRotateInterpolated function in ext/gd/libgd/gd_interpolation.c in PHP before 5.5.31, 5.6.x before 5.6.17, and 7.x before 7.0.2 allows remote attackers to obtain sensitive information or cause a denial of service (out-of-bounds read and application crash) via a large bgd_color argument to the imagerotate function.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
None
Availability
High

Exploit likelihood

7.81%Up 4.0 points since Feb 4, 2022
90%50%10%1%

What each source reports

NVD Score used 9.1

The gdImageRotateInterpolated function in ext/gd/libgd/gd_interpolation.c in PHP before 5.5.31, 5.6.x before 5.6.17, and 7.x before 7.0.2 allows remote attackers to obtain sensitive information or cause a denial of service (out-of-bounds read and application crash) via a large bgd_color argument to the imagerotate function.

Record
CVE-2016-1903
CVSS 3.0
9.1 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
CVSS 2.0
6.4 MediumAV:N/AC:L/Au:N/C:P/I:N/A:P
Weakness
CWE-119, CWE-200
Updated
2026-11-02
CVE List No score

The gdImageRotateInterpolated function in ext/gd/libgd/gd_interpolation.c in PHP before 5.5.31, 5.6.x before 5.6.17, and 7.x before 7.0.2 allows remote attackers to obtain sensitive information or cause a denial of service (out-of-bounds read and application crash) via a large bgd_color argument to the imagerotate function.

Record
CVE-2016-1903
Updated
2026-11-02
EUVDEUVD-2016-2996 No score

The gdImageRotateInterpolated function in ext/gd/libgd/gd_interpolation.c in PHP before 5.5.31, 5.6.x before 5.6.17, and 7.x before 7.0.2 allows remote attackers to obtain sensitive information or cause a denial of service (out-of-bounds read and application crash) via a large bgd_color argument to the imagerotate function.

Record
EUVD-2016-2996
Updated
2026-11-03
GitHub AdvisoriesGHSA-xvcw-3rfr-7w27 9.1

The gdImageRotateInterpolated function in ext/gd/libgd/gd_interpolation.c in PHP before 5.5.31, 5...

The gdImageRotateInterpolated function in ext/gd/libgd/gd_interpolation.c in PHP before 5.5.31, 5.6.x before 5.6.17, and 7.x before 7.0.2 allows remote attackers to obtain sensitive information or cause a denial of service (out-of-bounds read and application crash) via a large bgd_color argument to the imagerotate function.

Record
GHSA-xvcw-3rfr-7w27
CVSS 3.0
9.1 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Weakness
CWE-119
Updated
2026-11-02
OSV 9.1

The gdImageRotateInterpolated function in ext/gd/libgd/gd_interpolation.c in PHP before 5.5.31, 5.6.x before 5.6.17, and 7.x before 7.0.2 allows remote attackers to obtain sensitive information or cause a denial of service (out-of-bounds read and application crash) via a large bgd_color argument to the imagerotate function.

Record
CVE-2016-1903
CVSS 3.0
9.1 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Updated
2026-11-02
OSVRHSA-2016:2750 8.1

Red Hat Security Advisory: rh-php56 security, bug fix, and enhancement update

Record
RHSA-2016:2750
CVSS 3.0
8.1 HighCVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
Show 4 moreShow less
OSVUBUNTU-CVE-2016-1903 9.1

The gdImageRotateInterpolated function in ext/gd/libgd/gd_interpolation.c in PHP before 5.5.31, 5.6.x before 5.6.17, and 7.x before 7.0.2 allows remote attackers to obtain sensitive information or cause a denial of service (out-of-bounds read and application crash) via a large bgd_color argument to the imagerotate function.

Record
UBUNTU-CVE-2016-1903
CVSS 3.0
9.1 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Updated
2026-11-02
OSVMGASA-2016-0024 No score

Updated php packages fix security vulnerability

The php package has been updated to version 5.6.17, which fixes several security issues and other bugs. See the upstream ChangeLog for more details.

Record
MGASA-2016-0024
Updated
2026-11-02
OSVSUSE-SU-2016:0284-1 No score

Security update for php5

This update for php5 fixes the following issues:

  • CVE-2015-7803: Specially crafted .phar files with a crafted TAR archive entry allowed remote attackers to cause a Denial of Service (DoS) [bsc#949961]
  • CVE-2016-1903: Specially crafted image files could could allow remote attackers read unspecified memory when rotating images [bsc#962057]
Record
SUSE-SU-2016:0284-1
Updated
2026-11-02
OSVUSN-2952-1 No score

php5 vulnerabilities

It was discovered that the PHP Zip extension incorrectly handled directories when processing certain zip files. A remote attacker could possibly use this issue to create arbitrary directories. (CVE-2014-9767)

It was discovered that the PHP Soap client incorrectly validated data types. A remote attacker could use this issue to cause PHP to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2015-8835, CVE-2016-3185)

It was discovered that the PHP MySQL native driver incorrectly handled TLS connections to MySQL databases. A machine-in-the-middle attacker could possibly use this issue to downgrade and snoop on TLS connections. This vulnerability is known as BACKRONYM. (CVE-2015-8838)

It was discovered that PHP incorrectly handled the imagerotate function. A remote attacker could use this issue to cause PHP to crash, resulting in a denial of service, or possibly obtain sensitive information. This issue only applied to Ubuntu 14.04 LTS and Ubuntu 15.10. (CVE-2016-1903)

Hans Jerry Illikainen discovered that the PHP phar extension incorrectly handled certain tar archives. A remote attacker could use this issue to cause PHP to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2016-2554)

It was discovered that the PHP WDDX extension incorrectly handled certain malformed XML data. A remote attacker could possibly use this issue to cause PHP to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2016-3141)

It was discovered that the PHP phar extension incorrectly handled certain zip files. A remote attacker could use this issue to cause PHP to crash, resulting in a denial of service, or possibly obtain sensitive information. (CVE-2016-3142)

It was discovered that the PHP libxml_disable_entity_loader() setting was shared between threads. When running under PHP-FPM, this could result in XML external entity injection and entity expansion issues. This issue only applied to Ubuntu 12.04 LTS and Ubuntu 14.04 LTS. (No CVE number)

It was discovered that the PHP openssl_random_pseudo_bytes() function did not return cryptographically strong pseudo-random bytes. (No CVE number)

It was discovered that the PHP Fileinfo component incorrectly handled certain magic files. An attacker could use this issue to cause PHP to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE number pending)

It was discovered that the PHP php_snmp_error() function incorrectly handled string formatting. A remote attacker could use this issue to cause PHP to crash, resulting in a denial of service, or possibly execute arbitrary code. This issue only applied to Ubuntu 14.04 LTS and Ubuntu 15.10. (CVE number pending)

It was discovered that the PHP rawurlencode() function incorrectly handled large strings. A remote attacker could use this issue to cause PHP to crash, resulting in a denial of service. (CVE number pending)

It was discovered that the PHP phar extension incorrectly handled certain filenames in archives. A remote attacker could use this issue to cause PHP to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE number pending)

It was discovered that the PHP mb_strcut() function incorrectly handled string formatting. A remote attacker could use this issue to cause PHP to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE number pending)

Record
USN-2952-1
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
php
Mageia:5
before 5.6.17-1.mga5
5.6.17-1.mga5
rh-php56
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:2.3-1.el6
0:2.3-1.el6
rh-php56-php
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-bcmath
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-cli
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-common
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-dba
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-dbg
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-debuginfo
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-devel
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
Show 62 moreShow less
Affected packages
PackageAffectedFixed
rh-php56-php-embedded
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-enchant
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-fpm
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-gd
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-gmp
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-imap
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-intl
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-ldap
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-mbstring
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-mysqlnd
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-odbc
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-opcache
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-pdo
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-pear
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 1:1.9.5-4.el6
1:1.9.5-4.el6
rh-php56-php-pgsql
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-process
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-pspell
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-recode
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-snmp
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-soap
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-tidy
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-xml
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-php-xmlrpc
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:5.6.25-1.el6
0:5.6.25-1.el6
rh-php56-runtime
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:2.3-1.el6
0:2.3-1.el6
rh-php56-scldevel
Red Hat:rhel_software_collections:2::el6
From an advisory covering 80 CVEs
before 0:2.3-1.el6
0:2.3-1.el6
rh-php56
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:2.3-1.el7
0:2.3-1.el7
rh-php56-php
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-bcmath
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-cli
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-common
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-dba
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-dbg
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-debuginfo
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-devel
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-embedded
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-enchant
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-fpm
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-gd
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-gmp
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-intl
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-ldap
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-mbstring
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-mysqlnd
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-odbc
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-opcache
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-pdo
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-pear
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 1:1.9.5-4.el7
1:1.9.5-4.el7
rh-php56-php-pgsql
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-process
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-pspell
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-recode
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-snmp
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-soap
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-xml
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-php-xmlrpc
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:5.6.25-1.el7
0:5.6.25-1.el7
rh-php56-runtime
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:2.3-1.el7
0:2.3-1.el7
rh-php56-scldevel
Red Hat:rhel_software_collections:2::el7
From an advisory covering 80 CVEs
before 0:2.3-1.el7
0:2.3-1.el7
php5
SUSE:Linux Enterprise Module for Web and Scripting 12
From an advisory covering 2 CVEs
before 5.5.14-42.2
5.5.14-42.2
php5
SUSE:Linux Enterprise Software Development Kit 12
From an advisory covering 2 CVEs
before 5.5.14-42.2
5.5.14-42.2
php5
SUSE:Linux Enterprise Software Development Kit 12 SP1
From an advisory covering 2 CVEs
before 5.5.14-42.2
5.5.14-42.2
php5
Ubuntu:14.04:LTS
before 5.5.9+dfsg-1ubuntu4.16, plus listed versions
5.5.3+dfsg-1ubuntu25.5.3+dfsg-1ubuntu35.5.6+dfsg-1ubuntu15.5.6+dfsg-1ubuntu25.5.8+dfsg-2ubuntu1
Show 16 moreShow less
5.5.9+dfsg-1ubuntu15.5.9+dfsg-1ubuntu25.5.9+dfsg-1ubuntu35.5.9+dfsg-1ubuntu45.5.9+dfsg-1ubuntu4.15.5.9+dfsg-1ubuntu4.25.5.9+dfsg-1ubuntu4.35.5.9+dfsg-1ubuntu4.45.5.9+dfsg-1ubuntu4.55.5.9+dfsg-1ubuntu4.65.5.9+dfsg-1ubuntu4.75.5.9+dfsg-1ubuntu4.95.5.9+dfsg-1ubuntu4.115.5.9+dfsg-1ubuntu4.125.5.9+dfsg-1ubuntu4.135.5.9+dfsg-1ubuntu4.14
5.5.9+dfsg-1ubuntu4.16
php5
Ubuntu:14.04:LTS
From an advisory covering 8 CVEs
before 5.5.9+dfsg-1ubuntu4.16, plus listed versions
5.5.3+dfsg-1ubuntu25.5.3+dfsg-1ubuntu35.5.6+dfsg-1ubuntu15.5.6+dfsg-1ubuntu25.5.8+dfsg-2ubuntu1
Show 16 moreShow less
5.5.9+dfsg-1ubuntu15.5.9+dfsg-1ubuntu25.5.9+dfsg-1ubuntu35.5.9+dfsg-1ubuntu45.5.9+dfsg-1ubuntu4.15.5.9+dfsg-1ubuntu4.25.5.9+dfsg-1ubuntu4.35.5.9+dfsg-1ubuntu4.45.5.9+dfsg-1ubuntu4.55.5.9+dfsg-1ubuntu4.65.5.9+dfsg-1ubuntu4.75.5.9+dfsg-1ubuntu4.95.5.9+dfsg-1ubuntu4.115.5.9+dfsg-1ubuntu4.125.5.9+dfsg-1ubuntu4.135.5.9+dfsg-1ubuntu4.14
5.5.9+dfsg-1ubuntu4.16

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2016-1903 is a critical vulnerability (CVSS 9.1) in Php, published January 17, 2016. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 7.81%, the 94th percentile. Fixed in php 5.6.17-1.mga5.

References

Show 194 moreShow less
This page doesn't list everything

Left out here: 146 references. The JSON record has them.

MoveEnter Open