Read the docs
TI-2009-03383 Aliases CVE-2009-3546GHSA-w7xp-2c87-fchc

The _gdGetColors function in gd_gd.c in PHP 5.2.11 and 5.3.x before 5.3.1, and the GD…

Priority MEDIUM 53CWE-119Published · Updated

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

EPSS 0.10247 95th percentileScored 2026-11-07
Fix Partial Red Hat: 2 advisoriesRed Hat: 11 fixed, 3 without a fix

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
——all versions—No fix listedCNA
  • — Vendor— Affected all versions Fixed in — No fix listed CNA

CPE configurations NVD · 13

CPEVersionsRoleVendor
cpe:2.3:a:libgd:gd_graphics_library:2.0.33:*:*:*:*:*:*:*2.0.33VulnerableLibgd
cpe:2.3:a:libgd:gd_graphics_library:2.0.34:*:*:*:*:*:*:*2.0.34VulnerableLibgd
cpe:2.3:a:libgd:gd_graphics_library:2.0.34:rc1:*:*:*:*:*:*2.0.34 rc1VulnerableLibgd
cpe:2.3:a:libgd:gd_graphics_library:2.0.34:rc2:*:*:*:*:*:*2.0.34 rc2VulnerableLibgd
cpe:2.3:a:libgd:gd_graphics_library:2.0.35:*:*:*:*:*:*:*2.0.35VulnerableLibgd
cpe:2.3:a:libgd:gd_graphics_library:2.0.35:rc1:*:*:*:*:*:*2.0.35 rc1VulnerableLibgd
cpe:2.3:a:libgd:gd_graphics_library:2.0.35:rc2:*:*:*:*:*:*2.0.35 rc2VulnerableLibgd
cpe:2.3:a:libgd:gd_graphics_library:2.0.35:rc3:*:*:*:*:*:*2.0.35 rc3VulnerableLibgd
cpe:2.3:a:libgd:gd_graphics_library:2.0.35:rc4:*:*:*:*:*:*2.0.35 rc4VulnerableLibgd
cpe:2.3:a:libgd:gd_graphics_library:2.0.35:rc5:*:*:*:*:*:*2.0.35 rc5VulnerableLibgd
  • 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
Show 3 more CPE
CPEVersionsRoleVendor
cpe:2.3:a:libgd:gd_graphics_library:2.0.36:rc1:*:*:*:*:*:*2.0.36 rc1VulnerableLibgd
cpe:2.3:a:php:php:5.2.11:*:*:*:*:*:*:*5.2.11VulnerablePHP
cpe:2.3:a:php:php:5.3.0:*:*:*:*:*:*:*5.3.0VulnerablePHP
  • cpe:2.3:a:libgd:gd_graphics_library:2.0.36:rc1:*:*:*:*:*:* Versions 2.0.36 rc1 Vulnerable ·Libgd
  • cpe:2.3:a:php:php:5.2.11:*:*:*:*:*:*:* Versions 5.2.11 Vulnerable ·PHP
  • cpe:2.3:a:php:php:5.3.0:*:*:*:*:*:*:* Versions 5.3.0 Vulnerable ·PHP

Remediation

Red Hat 2 advisories

  • RHSA-2010:0040 Released 2010-01-13 · Red Hat rating Moderate
    php 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 Moderate
    gd 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 →

ProductStatusPlan or fix
Red Hat Enterprise Linux 4AffectedNo fix planned: Will not fix
Red Hat Enterprise Linux 5AffectedNo fix planned: Will not fix
Red Hat Enterprise Linux 6AffectedNo fix yet
Red Hat Desktop version 3Fixed RHSA-2010:0040
Red Hat Enterprise Linux (v. 5 server)Fixed RHSA-2010:0003, RHSA-2010:0040
Red Hat Enterprise Linux AS version 3Fixed RHSA-2010:0040
Red Hat Enterprise Linux AS version 4Fixed 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 4Fixed RHSA-2010:0003, RHSA-2010:0040
Red Hat Enterprise Linux ES version 3Fixed RHSA-2010:0040
Red Hat Enterprise Linux ES version 4Fixed RHSA-2010:0003, RHSA-2010:0040
Red Hat Enterprise Linux WS version 3Fixed RHSA-2010:0040
Red Hat Enterprise Linux WS version 4Fixed RHSA-2010:0003, RHSA-2010:0040

Timeline

  1. 2026-10-02 Threatist record created from CVE-2009-3546
  2. 2026-10-03 Alias added: GHSA-w7xp-2c87-fchc

References

Sources