Integer overflow in gd_io.c in the GD Graphics Library (aka libgd) before 2.2.4 allows…
Priority MEDIUM 40CWE-190Published · Updated
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 16 fixed, 4 without a fix
Attack profile from CVSS 3.0 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-190 and the CVSS impact.
Summary
Integer overflow in gd_io.c in the GD Graphics Library (aka libgd) before 2.2.4 allows remote attackers to have unspecified impact via vectors involving the number of horizontal and vertical chunks in an image.
Why it matters now
EPSS 0.03715 89th percentileScored 2026-11-07
Fix Partial Red Hat: 2 advisoriesRed Hat: 16 fixed, 4 without a fix
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | — | all versions | — | No fix listed | CNA |
- — Vendor— Affected all versions Fixed in — No fix listed CNA
Remediation
Red Hat 2 advisories
- RHSA-2018:1296 Released 2018-05-03 · Red Hat rating Moderaterh-php70-php security, bug fix, and enhancement update
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) rh-php70-php-7.0.27-1.el6, rh-php70-php-bcmath-7.0.27-1.el6, rh-php70-php-cli-7.0.27-1.el6 +28
- Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) rh-php70-php-7.0.27-1.el7, rh-php70-php-bcmath-7.0.27-1.el7, rh-php70-php-cli-7.0.27-1.el7 +26
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) rh-php70-php-7.0.27-1.el6, rh-php70-php-bcmath-7.0.27-1.el6, rh-php70-php-cli-7.0.27-1.el6 +28
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.3) rh-php70-php-7.0.27-1.el7, rh-php70-php-bcmath-7.0.27-1.el7, rh-php70-php-cli-7.0.27-1.el7 +26
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) rh-php70-php-7.0.27-1.el7, rh-php70-php-bcmath-7.0.27-1.el7, rh-php70-php-cli-7.0.27-1.el7 +26
- Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) rh-php70-php-7.0.27-1.el7, rh-php70-php-bcmath-7.0.27-1.el7, rh-php70-php-cli-7.0.27-1.el7 +26
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) rh-php70-php-7.0.27-1.el6, rh-php70-php-bcmath-7.0.27-1.el6, rh-php70-php-cli-7.0.27-1.el6 +28
- Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) rh-php70-php-7.0.27-1.el7, rh-php70-php-bcmath-7.0.27-1.el7, rh-php70-php-cli-7.0.27-1.el7 +26
- RHSA-2017:3221 Released 2017-11-15 · Red Hat rating Moderatephp security update
- Red Hat Enterprise Linux Client Optional (v. 7) php-5.4.16-43.el7_4, php-bcmath-5.4.16-43.el7_4, php-cli-5.4.16-43.el7_4 +22
- Red Hat Enterprise Linux ComputeNode Optional (v. 7) php-5.4.16-43.el7_4, php-bcmath-5.4.16-43.el7_4, php-cli-5.4.16-43.el7_4 +22
- Red Hat Enterprise Linux Server (v. 7) php-5.4.16-43.el7_4, php-cli-5.4.16-43.el7_4, php-common-5.4.16-43.el7_4 +11
- Red Hat Enterprise Linux Server Optional (v. 7) php-bcmath-5.4.16-43.el7_4, php-dba-5.4.16-43.el7_4, php-devel-5.4.16-43.el7_4 +8
- Red Hat Enterprise Linux Workstation (v. 7) php-5.4.16-43.el7_4, php-cli-5.4.16-43.el7_4, php-common-5.4.16-43.el7_4 +11
- Red Hat Enterprise Linux Workstation Optional (v. 7) php-bcmath-5.4.16-43.el7_4, php-dba-5.4.16-43.el7_4, php-devel-5.4.16-43.el7_4 +8
- Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7) php-5.4.16-43.el7_4, php-cli-5.4.16-43.el7_4, php-common-5.4.16-43.el7_4 +11
- Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server Optional (v. 7) php-bcmath-5.4.16-43.el7_4, php-dba-5.4.16-43.el7_4, php-devel-5.4.16-43.el7_4 +8
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 5 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Will not fix |
| Red Hat Software Collections | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux Client Optional (v. 7) | Fixed | RHSA-2017:3221 |
| Red Hat Enterprise Linux ComputeNode Optional (v. 7) | Fixed | RHSA-2017:3221 |
| Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2017:3221 |
| Red Hat Enterprise Linux Server Optional (v. 7) | Fixed | RHSA-2017:3221 |
| Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2017:3221 |
| Red Hat Enterprise Linux Workstation Optional (v. 7) | Fixed | RHSA-2017:3221 |
| Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server (v. 7) | Fixed | RHSA-2017:3221 |
| Red Hat Enterprise Linux for ARM and IBM Power LE (POWER9) Server Optional (v. 7) | Fixed | RHSA-2017:3221 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 6) | Fixed | RHSA-2018:1296 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server (v. 7) | Fixed | RHSA-2018:1296 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 6.7) | Fixed | RHSA-2018:1296 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.3) | Fixed | RHSA-2018:1296 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.4) | Fixed | RHSA-2018:1296 |
| Red Hat Software Collections for Red Hat Enterprise Linux Server EUS (v. 7.5) | Fixed | RHSA-2018:1296 |
| Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 6) | Fixed | RHSA-2018:1296 |
| Red Hat Software Collections for Red Hat Enterprise Linux Workstation (v. 7) | Fixed | RHSA-2018:1296 |
Not affected: 1 product
- Red Hat Software Collections
Timeline
- 2026-10-02 Threatist record created from CVE-2016-10168
- 2026-10-03 Alias added: GHSA-9fjh-m5gr-mrv2
References
Patch 4
- [oss-security] 20170126 CVE Requests: libgd: potential unsigned onderflow, denial-of-service in gdImageCreateFromGd2Ctx and signed overflow in gd_io.c
- [oss-security] 20170128 Re: CVE Requests: libgd: potential unsigned onderflow, denial-of-service in gdImageCreateFromGd2Ctx and signed overflow in gd_io.c
- https://github.com/libgd/libgd/commit/69d2fd2c597ffc0c217de1238b9bf4d4bceba8e6
- https://github.com/libgd/libgd/issues/354
More Libgd vulnerabilities
- TI-2019-04913 gdImageColorMatch in gd_color_match.c in the GD Graphics Library (aka LibGD) 2.2.5, as… CVSS 3.0HIGH 8.8
- TI-2016-02573 Integer signedness error in GD Graphics Library 2.1.1 (aka libgd or libgd2) allows remote… CVSS 3.1CRITICAL 9.8
- TI-2016-08242 Integer underflow in the _gdContributionsAlloc function in gd_interpolation.c in the GD… CVSS 3.0CRITICAL 9.8
- TI-2016-07128 Integer signedness error in the dynamicGetbuf function in gd_io_dp.c in the GD Graphics… CVSS 3.0CRITICAL 9.8
- TI-2016-06432 Integer overflow in the gdImageWebpCtx function in gd_webp.c in the GD Graphics Library… CVSS 3.0CRITICAL 9.8
- TI-2019-04914 The GD Graphics Library (aka LibGD) 2.2.5 has a double free in the gdImage*Ptr()… CVSS 3.0CRITICAL 9.8
Sources
- CVE-2016-10168 · CVE Program
- CVE-2016-10168 · NVD
- FIRST EPSS
- GHSA-9fjh-m5gr-mrv2 · GitHub Advisory Database · CC BY 4.0
- CVE-2016-10168 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences