Description
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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 14.04 LTS | php5 | 5.5.9+dfsg-1ubuntu4.16 | USN-2952-1 |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 2 | rh-php56 +2 | 2.3-1.el6 | RHSA-2016:2750 |
| RHEL 2 | rh-php56-php +27 | 5.6.25-1.el6 | RHSA-2016:2750 |
| RHEL 2 | rh-php56-php-pear | 1:1.9.5-4.el6 | RHSA-2016:2750 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP1 | php5 | 5.5.14-42.2 | SUSE-SU-2016:0284-1 |
| SLES 12 | php5 | 5.5.14-42.2 | SUSE-SU-2016:0284-1 |
Advisories 3
- RHSA-2016:2750 Red Hat Security Advisory: rh-php56 security, bug fix, and enhancement update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- USN-2952-1 php5 vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
- SUSE-SU-2016:0284-1 Security update for php5 SUSE / openSUSE Security Updates · Feb 4, 2026
References
- USN-2952-1 vendor-advisory
- 79916 vdb-entry
- http://www.php.net/ChangeLog-7.php
- https://bugs.php.net/bug.php?id=70976
- openSUSE-SU-2016:0251 vendor-advisory
- RHSA-2016:2750 vendor-advisory
- USN-2952-2 vendor-advisory
- SSA:2016-034-04 vendor-advisory
- [oss-security] 20160115 [CVE Request] Multiple PHP issues mailing-list
- http://www.php.net/ChangeLog-5.php
- https://h20566.www2.hpe.com/portal/site/hpsc/public/kb/docDisplay?docId=emr_na-c05240731
- openSUSE-SU-2016:0366 vendor-advisory
- 1034608 vdb-entry