Name | CVE-2016-1903 |
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. |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
Debian Bugs | 835032 |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
php5 (PTS) | jessie, jessie (lts) | 5.6.40+dfsg-0+deb8u21 | fixed |
php7.0 (PTS) | stretch (security) | 7.0.33-0+deb9u12 | fixed |
| stretch (lts), stretch | 7.0.33-0+deb9u19 | fixed |
The information below is based on the following data on fixed versions.
Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
---|
hhvm | source | (unstable) | 3.12.11+dfsg-1 | | | 835032 |
php5 | source | squeeze | (not affected) | | | |
php5 | source | wheezy | (not affected) | | | |
php5 | source | jessie | 5.6.14+dfsg-0+deb8u1 | | | |
php5 | source | (unstable) | 5.6.17+dfsg-1 | | | |
php5.6 | source | (unstable) | 5.6.17+dfsg-1 | | | |
php7.0 | source | (unstable) | 7.0.2-1 | | | |
Notes
[wheezy] - php5 <not-affected> (Vulnerable code not present)
[squeeze] - php5 <not-affected> (Vulnerable code not present, check in gdImageRotate() already available)
https://bugs.php.net/bug.php?id=70976
https://git.php.net/?p=php-src.git;a=commit;h=4b8394dd78571826ac66a69dc240c623f31d78f8
Fix in HHVM: https://github.com/facebook/hhvm/commit/f91abcc3b156823688c54158fc4fa36d87570afe