Original description
The imagetruecolortopalette function in ext/gd/gd.c in PHP before 5.6.25 and 7.x before 7.0.10 does not properly validate the number of colors, which allows remote attackers to cause a denial of service (select_colors allocation error and out-of-bounds write) or possibly have unspecified other impact via a large value in the third argument.
Affected software
- PHP = 7.0.2= 7.0.3≤ 5.6.24= 7.0.5= 7.0.9= 7.0.7 exact match
Details
- Published
- 2016-09-12
- Last modified
- 2024-08-06
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- cve.org/CVE-2016-7126
- nvd.nist.gov/vuln/detail/CVE-2016-7126
- www.php.net/ChangeLog-7.php
- security.gentoo.org/glsa/201611-22
- www.securitytracker.com/id/1036680
- github.com/php/php-src/commit/b6f13a5ef9d6280cf984826a5de012a32c396cd4?w=1
- rhn.redhat.com/errata/RHSA-2016-2750.html
- www.securityfocus.com/bid/92755
- www.php.net/ChangeLog-5.php
- www.tenable.com/security/tns-2016-19
- openwall.com/lists/oss-security/2016/09/02/9
- bugs.php.net/bug.php?id=72697
- github.com/php/php-src/commit/28022c9b1fd937436ab67bb3d61f652c108baf96
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.