The imagegammacorrect function in ext/gd/gd.c in PHP before 5.6.25 and 7.x before 7.0.10 does not properly validate gamma values, which allows remote attackers to cause a denial of service (out-of-bounds write) or possibly have unspecified other impact by providing different signs for the second and third arguments.
CVE-2016-7127
Score 9.8 from GitHub Security Advisory (severity: CRITICAL) published 2022-05-14. 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.8CRITICALmedium confidence
- EG Risk
- 51EG Risk 51/100CISA SSVC
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity98% × 45%Exploitation7% × 40%Automatability30% × 15%CISA SSVC: Track at low or medium mission impact; Track* or Attend at high (mission-essential systems).Action: A fix is available. Apply it within your standard update timelines at low or medium mission impact and sooner than that at high. - EPSS PROB
- 6.8%
- EPSS %ILE
- 93rd
- KEV
- Not listed
CISA SSVCTrack at low or medium mission impact; Track* or Attend at high (mission-essential systems).
A fix is available. Apply it within your standard update timelines at low or medium mission impact and sooner than that at high.
Exploitation none (no KEV listing, exploit record or EPSS ≥ 50%) · Automatable unknown (not published for this CVE) · Technical impact total (CVSS ≥ 9.0). Mission impact is CISA's Mission & Well-being decision point, and only you can judge it: high means the affected system is essential to your organisation's mission, or its compromise could cause irreversible harm to people. CISA's decision table
Published
September 12, 2016
Last Modified
June 17, 2026
Advisory Details (10)
Auto-updated Sep 29, 2026[R6] SecurityCenter 5.4.1 Fixes Multiple Vulnerabilities - Security Advisory | Tenable®
https://www.tenable.com/security/tns-2016-19PHP: Multiple vulnerabilities (GLSA 201611-22) — Gentoo security
https://security.gentoo.org/glsa/201611-22commit 1bd103df00f4 (php/php-src)
Patch available: php/php-src php-8.5.1 (contains commit 1bd103df00f4)
https://github.com/php/php-src/commit/1bd103df00f49cf4d4ade2cfe3f456ac058a4eae?w=1PHP :: Sec Bug #72730 :: imagegammacorrect allows arbitrary write access
https://bugs.php.net/bug.php?id=72730oss-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-7127(1)
These vendors published their own advisory mentioning this CVE — often with vendor-specific remediation steps + affected product lists not in NVD.
Patch Availability(2)
| Vendor / Ecosystem | Fix (by version range) / Patch | Released | Source |
|---|---|---|---|
| ubuntu | php7.0-zip (7.0.8-0ubuntu0.16.04.3) @ xenial | 2026-05-20 | ubuntu |
| 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.
Affected Packages
(1 across 1 ecosystem)
Debian:8(1)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| php5 | 5.6.11+dfsg-1 ... 5.6.9+dfsg-1 (34 versions) |
| — |
Weakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Additional Vendor Advisories
(1)
Vendors that published advisories for this CVE beyond the curated set above. Broader coverage but minimal per-row detail — click through for the original advisory.
Data Freshness Timeline
(refreshed 6× in last 7d / 23× 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.
Showing the most recent 100 of 167 total refreshes for this CVE.
- 2026-10-05 17:38 UTCEPSS rescore
- 2026-10-04 10:08 UTCOSV refresh
- 2026-10-03 14:21 UTCEPSS rescore
- 2026-10-03 14:21 UTCEPSS rescore
- 2026-09-30 14:58 UTCEPSS rescore
- 2026-09-30 09:15 UTCEG score recompute
- 2026-09-28 13:45 UTCEPSS rescore
- 2026-09-27 13:40 UTCEPSS rescore
- 2026-09-26 15:53 UTCEPSS rescore
- 2026-09-26 15:53 UTCEPSS rescore
- 2026-09-24 13:59 UTCEPSS rescore
- 2026-09-23 13:41 UTCEPSS rescore
- 2026-09-19 15:35 UTCEPSS rescore
- 2026-09-18 19:22 UTCEPSS rescore
- 2026-09-17 19:22 UTCEPSS rescore
- 2026-09-16 05:05 UTCEPSS rescore
- 2026-09-15 03:05 UTCEPSS rescore
- 2026-09-15 00:14 UTCOSV refresh
- 2026-09-12 14:55 UTCEPSS rescore
- 2026-09-11 14:46 UTCEPSS rescore
- 2026-09-11 09:31 UTCEPSS rescore
- 2026-09-10 09:26 UTCEPSS rescore
- 2026-09-07 15:56 UTCEPSS rescore
- 2026-09-04 13:56 UTCEPSS rescore
- 2026-09-02 14:07 UTCEPSS rescore
Show 75 moreShow fewer
- 2026-09-01 13:48 UTCEPSS rescore
- 2026-09-01 03:31 UTCEPSS rescore
- 2026-08-28 21:35 UTCEPSS rescore
- 2026-08-27 14:20 UTCEPSS rescore
- 2026-08-26 23:39 UTCOSV refresh
- 2026-08-26 14:41 UTCEPSS rescore
- 2026-08-25 13:44 UTCEPSS rescore
- 2026-08-21 23:44 UTCEPSS rescore
- 2026-08-19 16:59 UTCEPSS rescore
- 2026-08-18 13:43 UTCEPSS rescore
- 2026-08-16 14:51 UTCEPSS rescore
- 2026-08-16 02:10 UTCEPSS rescore
- 2026-08-15 01:25 UTCEPSS rescore
- 2026-08-12 13:46 UTCEPSS rescore
- 2026-08-11 13:36 UTCEPSS rescore
- 2026-08-10 13:40 UTCOSV refresh
- 2026-08-09 13:42 UTCEPSS rescore
- 2026-08-08 16:32 UTCEPSS rescore
- 2026-08-07 16:22 UTCEPSS rescore
- 2026-08-06 13:42 UTCEPSS rescore
- 2026-08-05 19:12 UTCEPSS rescore
- 2026-08-04 15:05 UTCEPSS rescore
- 2026-08-02 02:22 UTCEPSS rescore
- 2026-08-01 04:11 UTCEPSS rescore
- 2026-07-30 16:24 UTCEPSS rescore
- 2026-07-30 01:26 UTCEPSS rescore
- 2026-07-30 01:26 UTCEPSS rescore
- 2026-07-28 15:31 UTCEPSS rescore
- 2026-07-25 14:30 UTCOSV refresh
- 2026-07-25 14:13 UTCEPSS rescore
- 2026-07-24 14:13 UTCEPSS rescore
- 2026-07-23 14:15 UTCEPSS rescore
- 2026-07-23 01:24 UTCEG score recompute
- 2026-07-22 22:03 UTCEG score recompute
- 2026-07-22 14:04 UTCEPSS rescore
- 2026-07-21 15:21 UTCEPSS rescore
- 2026-07-21 15:21 UTCEPSS rescore
- 2026-07-20 17:04 UTCEPSS rescore
- 2026-07-19 14:28 UTCEPSS rescore
- 2026-07-19 14:28 UTCEPSS rescore
- 2026-07-19 02:26 UTCEPSS rescore
- 2026-07-19 02:26 UTCEPSS rescore
- 2026-07-18 10:00 UTCEPSS rescore
- 2026-07-18 10:00 UTCEPSS rescore
- 2026-07-16 16:59 UTCEPSS rescore
- 2026-07-16 16:59 UTCEPSS rescore
- 2026-07-15 16:54 UTCEPSS rescore
- 2026-07-15 16:54 UTCEPSS rescore
- 2026-07-15 01:56 UTCEPSS rescore
- 2026-07-13 22:26 UTCEPSS rescore
- 2026-07-12 05:43 UTCEPSS rescore
- 2026-07-12 05:43 UTCEPSS rescore
- 2026-07-11 08:24 UTCEPSS rescore
- 2026-07-09 19:06 UTCEPSS rescore
- 2026-07-08 15:10 UTCEPSS rescore
- 2026-07-08 09:05 UTCOSV refresh
- 2026-07-07 13:42 UTCEPSS rescore
- 2026-07-06 16:24 UTCEPSS rescore
- 2026-07-06 16:24 UTCEPSS rescore
- 2026-07-06 02:20 UTCEPSS rescore
- 2026-07-06 02:20 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-21 14:54 UTCEPSS rescore
- 2026-06-21 14:54 UTCEPSS rescore
Related CVEs(same product + same vendor + same CWE)
Same product
10 shownDebian:8:php5
- CVE-2019-11043NVD 8.7EG 9.8 KEVEPSS p100CRITICAL
- CVE-2019-9641EG 9.8EPSS p95CRITICAL
- CVE-2019-9023EG 9.8EPSS p95CRITICAL
- CVE-2019-9021EG 9.8EPSS p95CRITICAL
- CVE-2019-9020EG 9.8EPSS p95CRITICAL
- CVE-2018-7584EG 9.8EPSS p100CRITICAL
- CVE-2017-12933EG 9.8EPSS p94CRITICAL
- CVE-2016-10160EG 9.8EPSS p94CRITICAL
- CVE-2016-7479EG 9.8EPSS p99CRITICAL
- CVE-2016-9935EG 9.8EPSS p94CRITICAL
Same vendor
10 shownredhat:RHSA-2016:2750 · ubuntu:USN-3095-1
- CVE-2016-7129EG 9.8EPSS p94CRITICAL
- CVE-2016-7124EG 9.8EPSS p97CRITICAL
- CVE-2016-7132EG 7.5EPSS p95HIGH
- CVE-2016-7131EG 7.5EPSS p95HIGH
- CVE-2016-7130EG 7.5EPSS p94HIGH
- CVE-2016-7125EG 7.5EPSS p93HIGH
- CVE-2016-7128EG 5.3EPSS p94MEDIUM
- CVE-2016-4473EG 9.8EPSS p94CRITICAL
- CVE-2015-3210EG 9.8EPSS p95CRITICAL
- CVE-2016-7417EG 9.8EPSS p94CRITICAL
Same CWE
10 shownCWE-787
- CVE-2016-7126EG 9.8EPSS p95CRITICAL
- CVE-2016-7178EG 5.9MEDIUM
- CVE-2016-4274NVD 8.8EG 9.8EPSS p91CRITICAL
- CVE-2016-4275NVD 8.8EG 9.8EPSS p97CRITICAL
- CVE-2016-4276NVD 8.8EG 9.8EPSS p91CRITICAL
- CVE-2016-4280NVD 8.8EG 9.8EPSS p91CRITICAL
- CVE-2016-4281NVD 8.8EG 9.8EPSS p91CRITICAL
- CVE-2016-4282NVD 8.8EG 9.8EPSS p91CRITICAL
- CVE-2016-4283NVD 8.8EG 9.8EPSS p91CRITICAL
- CVE-2016-4284NVD 8.8EG 9.8EPSS p91CRITICAL
Frequently asked(5)
What is CVE-2016-7127?
When was CVE-2016-7127 disclosed?
Is CVE-2016-7127 actively exploited?
What is the CVSS score of CVE-2016-7127?
How do I remediate CVE-2016-7127?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2016-7127
Is Your Infrastructure Affected by CVE-2016-7127?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.