Vulnerabilities / CVE-2016-1903

critical

CVE-2016-1903

php: Out-of-bounds memory read via gdImageRotateInterpolated

Published Modified CWE 119, 200
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.1CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
Red Hat5.0AV:N/AC:L/Au:N/C:P/I:N/A:N

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Red Hat (medium), Amazon (medium), Ubuntu (low).

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.

Affected packages and fixed versions

SourcePackageFixed in
amazon linux 1php55, php55-bcmath, php55-cli and 60 more5.5.31-1.111.amzn1 and 1 more
debian 8php55.6.14+dfsg-0+deb8u1
ubuntu 14.04php55.5.9+dfsg-1ubuntu4.16
ubuntu 14.04-ESMphp55.5.9+dfsg-1ubuntu4.16
ubuntu 15.10php55.6.11+dfsg-1ubuntu3.2
Show all 67 entries from 5 sources
SourcePackageFixed in
amazon linux 1php555.5.31-1.111.amzn1
amazon linux 1php55-bcmath5.5.31-1.111.amzn1
amazon linux 1php55-cli5.5.31-1.111.amzn1
amazon linux 1php55-common5.5.31-1.111.amzn1
amazon linux 1php55-dba5.5.31-1.111.amzn1
amazon linux 1php55-debuginfo5.5.31-1.111.amzn1
amazon linux 1php55-devel5.5.31-1.111.amzn1
amazon linux 1php55-embedded5.5.31-1.111.amzn1
amazon linux 1php55-enchant5.5.31-1.111.amzn1
amazon linux 1php55-fpm5.5.31-1.111.amzn1
amazon linux 1php55-gd5.5.31-1.111.amzn1
amazon linux 1php55-gmp5.5.31-1.111.amzn1
amazon linux 1php55-imap5.5.31-1.111.amzn1
amazon linux 1php55-intl5.5.31-1.111.amzn1
amazon linux 1php55-ldap5.5.31-1.111.amzn1
amazon linux 1php55-mbstring5.5.31-1.111.amzn1
amazon linux 1php55-mcrypt5.5.31-1.111.amzn1
amazon linux 1php55-mssql5.5.31-1.111.amzn1
amazon linux 1php55-mysqlnd5.5.31-1.111.amzn1
amazon linux 1php55-odbc5.5.31-1.111.amzn1
amazon linux 1php55-opcache5.5.31-1.111.amzn1
amazon linux 1php55-pdo5.5.31-1.111.amzn1
amazon linux 1php55-pgsql5.5.31-1.111.amzn1
amazon linux 1php55-process5.5.31-1.111.amzn1
amazon linux 1php55-pspell5.5.31-1.111.amzn1
amazon linux 1php55-recode5.5.31-1.111.amzn1
amazon linux 1php55-snmp5.5.31-1.111.amzn1
amazon linux 1php55-soap5.5.31-1.111.amzn1
amazon linux 1php55-tidy5.5.31-1.111.amzn1
amazon linux 1php55-xml5.5.31-1.111.amzn1
amazon linux 1php55-xmlrpc5.5.31-1.111.amzn1
amazon linux 1php565.6.17-1.120.amzn1
amazon linux 1php56-bcmath5.6.17-1.120.amzn1
amazon linux 1php56-cli5.6.17-1.120.amzn1
amazon linux 1php56-common5.6.17-1.120.amzn1
amazon linux 1php56-dba5.6.17-1.120.amzn1
amazon linux 1php56-dbg5.6.17-1.120.amzn1
amazon linux 1php56-debuginfo5.6.17-1.120.amzn1
amazon linux 1php56-devel5.6.17-1.120.amzn1
amazon linux 1php56-embedded5.6.17-1.120.amzn1
amazon linux 1php56-enchant5.6.17-1.120.amzn1
amazon linux 1php56-fpm5.6.17-1.120.amzn1
amazon linux 1php56-gd5.6.17-1.120.amzn1
amazon linux 1php56-gmp5.6.17-1.120.amzn1
amazon linux 1php56-imap5.6.17-1.120.amzn1
amazon linux 1php56-intl5.6.17-1.120.amzn1
amazon linux 1php56-ldap5.6.17-1.120.amzn1
amazon linux 1php56-mbstring5.6.17-1.120.amzn1
amazon linux 1php56-mcrypt5.6.17-1.120.amzn1
amazon linux 1php56-mssql5.6.17-1.120.amzn1
amazon linux 1php56-mysqlnd5.6.17-1.120.amzn1
amazon linux 1php56-odbc5.6.17-1.120.amzn1
amazon linux 1php56-opcache5.6.17-1.120.amzn1
amazon linux 1php56-pdo5.6.17-1.120.amzn1
amazon linux 1php56-pgsql5.6.17-1.120.amzn1
amazon linux 1php56-process5.6.17-1.120.amzn1
amazon linux 1php56-pspell5.6.17-1.120.amzn1
amazon linux 1php56-recode5.6.17-1.120.amzn1
amazon linux 1php56-snmp5.6.17-1.120.amzn1
amazon linux 1php56-soap5.6.17-1.120.amzn1
amazon linux 1php56-tidy5.6.17-1.120.amzn1
amazon linux 1php56-xml5.6.17-1.120.amzn1
amazon linux 1php56-xmlrpc5.6.17-1.120.amzn1
debian 8php55.6.14+dfsg-0+deb8u1
ubuntu 14.04php55.5.9+dfsg-1ubuntu4.16
ubuntu 14.04-ESMphp55.5.9+dfsg-1ubuntu4.16
ubuntu 15.10php55.6.11+dfsg-1ubuntu3.2

References

All 17 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.