The _gdGetColors function in gd_gd.c in PHP 5.2.11 and 5.3.x before 5.3.1, and the GD…
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- — Not recorded in CVSS 2.0
- Attack complexity
- Medium
- Impact type
- Code execution
- Confidentiality · integrity · availability
- Complete · Complete · Complete
- Fix status
- Partial Red Hat: 11 fixed, 3 without a fix
Attack profile from CVSS 2.0 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-119 and the CVSS impact.
Summary
The _gdGetColors function in gd_gd.c in PHP 5.2.11 and 5.3.x before 5.3.1, and the GD Graphics Library 2.x, does not properly verify a certain colorsTotal structure member, which might allow remote attackers to conduct buffer overflow or buffer over-read attacks via a crafted GD file, a different vulnerability than CVE-2009-3293. NOTE: some of these details are obtained from third party information.
Why it matters now
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
CPE configurations NVD · 13
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:libgd:gd_graphics_library:2.0.33:*:*:*:*:*:*:* | 2.0.33 | Vulnerable | Libgd |
| cpe:2.3:a:libgd:gd_graphics_library:2.0.34:*:*:*:*:*:*:* | 2.0.34 | Vulnerable | Libgd |
| cpe:2.3:a:libgd:gd_graphics_library:2.0.34:rc1:*:*:*:*:*:* | 2.0.34 rc1 | Vulnerable | Libgd |
| cpe:2.3:a:libgd:gd_graphics_library:2.0.34:rc2:*:*:*:*:*:* | 2.0.34 rc2 | Vulnerable | Libgd |
| cpe:2.3:a:libgd:gd_graphics_library:2.0.35:*:*:*:*:*:*:* | 2.0.35 | Vulnerable | Libgd |
| cpe:2.3:a:libgd:gd_graphics_library:2.0.35:rc1:*:*:*:*:*:* | 2.0.35 rc1 | Vulnerable | Libgd |
| cpe:2.3:a:libgd:gd_graphics_library:2.0.35:rc2:*:*:*:*:*:* | 2.0.35 rc2 | Vulnerable | Libgd |
| cpe:2.3:a:libgd:gd_graphics_library:2.0.35:rc3:*:*:*:*:*:* | 2.0.35 rc3 | Vulnerable | Libgd |
| cpe:2.3:a:libgd:gd_graphics_library:2.0.35:rc4:*:*:*:*:*:* | 2.0.35 rc4 | Vulnerable | Libgd |
| cpe:2.3:a:libgd:gd_graphics_library:2.0.35:rc5:*:*:*:*:*:* | 2.0.35 rc5 | Vulnerable | Libgd |
- cpe:2.3:a:libgd:gd_graphics_library:2.0.33:*:*:*:*:*:*:* Versions 2.0.33 Vulnerable ·Libgd
- cpe:2.3:a:libgd:gd_graphics_library:2.0.34:*:*:*:*:*:*:* Versions 2.0.34 Vulnerable ·Libgd
- cpe:2.3:a:libgd:gd_graphics_library:2.0.34:rc1:*:*:*:*:*:* Versions 2.0.34 rc1 Vulnerable ·Libgd
- cpe:2.3:a:libgd:gd_graphics_library:2.0.34:rc2:*:*:*:*:*:* Versions 2.0.34 rc2 Vulnerable ·Libgd
- cpe:2.3:a:libgd:gd_graphics_library:2.0.35:*:*:*:*:*:*:* Versions 2.0.35 Vulnerable ·Libgd
- cpe:2.3:a:libgd:gd_graphics_library:2.0.35:rc1:*:*:*:*:*:* Versions 2.0.35 rc1 Vulnerable ·Libgd
- cpe:2.3:a:libgd:gd_graphics_library:2.0.35:rc2:*:*:*:*:*:* Versions 2.0.35 rc2 Vulnerable ·Libgd
- cpe:2.3:a:libgd:gd_graphics_library:2.0.35:rc3:*:*:*:*:*:* Versions 2.0.35 rc3 Vulnerable ·Libgd
- cpe:2.3:a:libgd:gd_graphics_library:2.0.35:rc4:*:*:*:*:*:* Versions 2.0.35 rc4 Vulnerable ·Libgd
- cpe:2.3:a:libgd:gd_graphics_library:2.0.35:rc5:*:*:*:*:*:* Versions 2.0.35 rc5 Vulnerable ·Libgd
Remediation
Red Hat 2 advisories
- RHSA-2010:0040 Released 2010-01-13 · Red Hat rating Moderatephp security update
- Red Hat Desktop version 3 php-4.3.2-54.ent, php-4.3.2-54.ent.i386, php-devel-4.3.2-54.ent +11
- Red Hat Enterprise Linux (v. 5 server) php-5.1.6-24.el5_4.5, php-5.1.6-24.el5_4.5.i386, php-5.1.6-24.el5_4.5.ia64 +47
- Red Hat Enterprise Linux AS version 3 php-4.3.2-54.ent, php-4.3.2-54.ent.i386, php-4.3.2-54.ent.ia64 +25
- Red Hat Enterprise Linux AS version 4 php-4.3.9-3.29, php-4.3.9-3.29.i386, php-4.3.9-3.29.ia64 +47
- Red Hat Enterprise Linux Desktop Workstation (v. 5 client) php-5.1.6-24.el5_4.5, php-5.1.6-24.el5_4.5.i386, php-bcmath-5.1.6-24.el5_4.5 +35
- Red Hat Enterprise Linux Desktop version 4 php-4.3.9-3.29, php-4.3.9-3.29.i386, php-devel-4.3.9-3.29 +25
- Red Hat Enterprise Linux ES version 3 php-4.3.2-54.ent, php-4.3.2-54.ent.i386, php-4.3.2-54.ent.ia64 +18
- Red Hat Enterprise Linux ES version 4 php-4.3.9-3.29, php-4.3.9-3.29.i386, php-4.3.9-3.29.ia64 +39
- Red Hat Enterprise Linux WS version 3 php-4.3.2-54.ent, php-4.3.2-54.ent.i386, php-4.3.2-54.ent.ia64 +18
- Red Hat Enterprise Linux WS version 4 php-4.3.9-3.29, php-4.3.9-3.29.i386, php-4.3.9-3.29.ia64 +39
- RHSA-2010:0003 Released 2010-01-04 · Red Hat rating Moderategd security update
- Red Hat Enterprise Linux (v. 5 server) gd-2.0.33-9.4.el5_4.2, gd-2.0.33-9.4.el5_4.2.i386, gd-2.0.33-9.4.el5_4.2.ia64 +9
- Red Hat Enterprise Linux AS version 4 gd-2.0.28-5.4E.el4_8.1, gd-2.0.28-5.4E.el4_8.1.i386, gd-2.0.28-5.4E.el4_8.1.ia64 +9
- Red Hat Enterprise Linux Desktop (v. 5 client) gd-2.0.33-9.4.el5_4.2, gd-2.0.33-9.4.el5_4.2.i386, gd-progs-2.0.33-9.4.el5_4.2 +1
- Red Hat Enterprise Linux Desktop Workstation (v. 5 client) gd-2.0.33-9.4.el5_4.2, gd-devel-2.0.33-9.4.el5_4.2, gd-devel-2.0.33-9.4.el5_4.2.i386
- Red Hat Enterprise Linux Desktop version 4 gd-2.0.28-5.4E.el4_8.1, gd-2.0.28-5.4E.el4_8.1.i386, gd-devel-2.0.28-5.4E.el4_8.1 +3
- Red Hat Enterprise Linux ES version 4 gd-2.0.28-5.4E.el4_8.1, gd-2.0.28-5.4E.el4_8.1.i386, gd-2.0.28-5.4E.el4_8.1.ia64 +6
- Red Hat Enterprise Linux WS version 4 gd-2.0.28-5.4E.el4_8.1, gd-2.0.28-5.4E.el4_8.1.i386, gd-2.0.28-5.4E.el4_8.1.ia64 +6
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 4 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 5 | Affected | No fix planned: Will not fix |
| Red Hat Enterprise Linux 6 | Affected | No fix yet |
| Red Hat Desktop version 3 | Fixed | RHSA-2010:0040 |
| Red Hat Enterprise Linux (v. 5 server) | Fixed | RHSA-2010:0003, RHSA-2010:0040 |
| Red Hat Enterprise Linux AS version 3 | Fixed | RHSA-2010:0040 |
| Red Hat Enterprise Linux AS version 4 | Fixed | RHSA-2010:0003, RHSA-2010:0040 |
| Red Hat Enterprise Linux Desktop (v. 5 client) | Fixed | RHSA-2010:0003 |
| Red Hat Enterprise Linux Desktop Workstation (v. 5 client) | Fixed | RHSA-2010:0003, RHSA-2010:0040 |
| Red Hat Enterprise Linux Desktop version 4 | Fixed | RHSA-2010:0003, RHSA-2010:0040 |
| Red Hat Enterprise Linux ES version 3 | Fixed | RHSA-2010:0040 |
| Red Hat Enterprise Linux ES version 4 | Fixed | RHSA-2010:0003, RHSA-2010:0040 |
| Red Hat Enterprise Linux WS version 3 | Fixed | RHSA-2010:0040 |
| Red Hat Enterprise Linux WS version 4 | Fixed | RHSA-2010:0003, RHSA-2010:0040 |
Timeline
- 2026-10-02 Threatist record created from CVE-2009-3546
- 2026-10-03 Alias added: GHSA-w7xp-2c87-fchc
References
Sources
- CVE-2009-3546 · CVE Program
- CVE-2009-3546 · NVD
- FIRST EPSS
- GHSA-w7xp-2c87-fchc · GitHub Advisory Database · CC BY 4.0
- CVE-2009-3546 · 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