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.
CVE-2016-7126
Score 9.8 from GitHub Security Advisory (severity: CRITICAL) published 2022-05-13. NVD baseline CVSS 9.8; sources differ by 0.0.
- High severity, but no confirmed exploitation yet
A fix is available — apply it.
- CVSS v3
- 9.8
- EG Score
- 9.8(medium)
- EPSS
- 94.6%
- KEV
- Not listed
Published
September 12, 2016
Last Modified
May 6, 2026
Advisory Details (9)
Auto-updated May 8, 2026PHP: Multiple vulnerabilities (GLSA 201611-22) — Gentoo security
https://security.gentoo.org/glsa/201611-22Fix bug#72697 - select_colors write out-of-bounds · php/php-src@b6f13a5 · GitHub
https://github.com/php/php-src/commit/b6f13a5ef9d6280cf984826a5de012a32c396cd4?w=1Fix bug#72697 - select_colors write out-of-bounds · php/php-src@28022c9 · GitHub
https://github.com/php/php-src/commit/28022c9b1fd937436ab67bb3d61f652c108baf96PHP :: Sec Bug #72697 :: select_colors write out-of-bounds
https://bugs.php.net/bug.php?id=72697oss-security - Re: CVE assignment for PHP 5.6.25 and 7.0.10 - and libcurl
http://openwall.com/lists/oss-security/2016/09/02/9Vendor Advisories for CVE-2016-7126(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Patch Availability(1)
| Vendor / Ecosystem | Fixed in / Patch | Released | Source |
|---|---|---|---|
| redhat | rh-php56-php-pear-1:1.9.5-4.el7 | 2016-11-15 | redhat |
Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.
Data Freshness Timeline
(refreshed 8× in last 7d / 36× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
- 2026-07-07 13:42 UTCEPSS rescore
- 2026-07-06 16:24 UTCEPSS rescore
- 2026-07-06 16:24 UTCEPSS rescore
- 2026-07-05 02:27 UTCEPSS rescore
- 2026-07-04 06:28 UTCEPSS rescore
- 2026-07-01 15:02 UTCEPSS rescore
- 2026-06-30 23:19 UTCEPSS rescore
- 2026-06-30 23:19 UTCEPSS rescore
- 2026-06-29 14:03 UTCEPSS rescore
- 2026-06-28 14:04 UTCEPSS rescore
- 2026-06-28 04:53 UTCEPSS rescore
- 2026-06-27 03:05 UTCEPSS rescore
- 2026-06-25 13:47 UTCEPSS rescore
- 2026-06-24 14:02 UTCEPSS rescore
- 2026-06-23 21:30 UTCEPSS rescore
- 2026-06-22 14:23 UTCEPSS rescore
- 2026-06-21 14:54 UTCEPSS rescore
- 2026-06-21 14:54 UTCEPSS rescore
- 2026-06-21 01:57 UTCEPSS rescore
- 2026-06-21 01:57 UTCEPSS rescore
- 2026-06-19 19:23 UTCEPSS rescore
- 2026-06-19 19:23 UTCEPSS rescore
- 2026-06-19 16:55 UTCOSV refresh
- 2026-06-18 17:50 UTCEPSS rescore
- 2026-06-18 17:50 UTCEPSS rescore
Show 71 moreShow fewer
- 2026-06-17 17:50 UTCEPSS rescore
- 2026-06-17 17:50 UTCEPSS rescore
- 2026-06-16 17:50 UTCEPSS rescore
- 2026-06-15 17:45 UTCEPSS rescore
- 2026-06-14 23:14 UTCEPSS rescore
- 2026-06-14 23:14 UTCEPSS rescore
- 2026-06-13 22:57 UTCEPSS rescore
- 2026-06-13 22:57 UTCEPSS rescore
- 2026-06-12 23:09 UTCEPSS rescore
- 2026-06-11 13:57 UTCEPSS rescore
- 2026-06-08 14:14 UTCEPSS rescore
- 2026-06-07 15:22 UTCEPSS rescore
- 2026-06-07 15:22 UTCEPSS rescore
- 2026-06-06 13:45 UTCEPSS rescore
- 2026-06-06 13:45 UTCEPSS rescore
- 2026-06-05 22:44 UTCEPSS rescore
- 2026-06-05 06:08 UTCEPSS rescore
- 2026-06-05 06:08 UTCEPSS rescore
- 2026-06-04 13:10 UTCEPSS rescore
- 2026-06-04 13:10 UTCEPSS rescore
- 2026-06-02 20:10 UTCEPSS rescore
- 2026-06-01 13:49 UTCEPSS rescore
- 2026-06-01 13:49 UTCEPSS rescore
- 2026-05-31 22:28 UTCEPSS rescore
- 2026-05-31 22:28 UTCEPSS rescore
- 2026-05-31 00:14 UTCEPSS rescore
- 2026-05-30 22:53 UTCOSV refresh
- 2026-05-29 13:41 UTCEPSS rescore
- 2026-05-28 13:42 UTCEPSS rescore
- 2026-05-28 13:42 UTCEPSS rescore
- 2026-05-27 13:38 UTCEPSS rescore
- 2026-05-27 13:38 UTCEPSS rescore
- 2026-05-26 13:42 UTCEPSS rescore
- 2026-05-26 13:42 UTCEPSS rescore
- 2026-05-26 07:17 UTCEPSS rescore
- 2026-05-24 16:44 UTCEPSS rescore
- 2026-05-20 22:37 UTCEPSS rescore
- 2026-05-20 22:37 UTCEPSS rescore
- 2026-05-20 22:37 UTCEPSS rescore
- 2026-05-20 11:21 UTCEPSS rescore
- 2026-05-20 11:21 UTCEPSS rescore
- 2026-05-20 09:02 UTCEG score recompute
- 2026-05-20 09:02 UTCVendor advisory
- 2026-05-20 09:02 UTCGHSA enrichment
- 2026-05-20 05:00 UTCEG score recompute
- 2026-05-20 05:00 UTCVendor advisory
- 2026-05-20 05:00 UTCGHSA enrichment
- 2026-05-20 00:55 UTCEG score recompute
- 2026-05-20 00:55 UTCVendor advisory
- 2026-05-20 00:55 UTCGHSA enrichment
- 2026-05-19 20:54 UTCEG score recompute
- 2026-05-19 20:54 UTCVendor advisory
- 2026-05-19 20:54 UTCGHSA enrichment
- 2026-05-19 16:53 UTCEG score recompute
- 2026-05-19 16:53 UTCVendor advisory
- 2026-05-19 16:53 UTCGHSA enrichment
- 2026-05-19 12:45 UTCEG score recompute
- 2026-05-19 12:45 UTCVendor advisory
- 2026-05-19 12:45 UTCGHSA enrichment
- 2026-05-19 08:37 UTCEG score recompute
- 2026-05-19 08:37 UTCVendor advisory
- 2026-05-19 08:37 UTCGHSA enrichment
- 2026-05-19 04:38 UTCEG score recompute
- 2026-05-19 04:38 UTCVendor advisory
- 2026-05-19 04:38 UTCGHSA enrichment
- 2026-05-19 00:38 UTCEG score recompute
- 2026-05-19 00:38 UTCVendor advisory
- 2026-05-19 00:37 UTCGHSA enrichment
- 2026-05-18 21:30 UTCEPSS rescore
- 2026-05-18 21:30 UTCEPSS rescore
- 2026-05-18 21:30 UTCEPSS rescore
Related CVEs(same vendor)
Frequently asked(5)
What is CVE-2016-7126?
When was CVE-2016-7126 disclosed?
Is CVE-2016-7126 actively exploited?
What is the CVSS score of CVE-2016-7126?
How do I remediate CVE-2016-7126?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2016-7126
Is Your Infrastructure Affected by CVE-2016-7126?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.