Cloudanix VulnDB

CVE-2007-3476

None

CVSS

—

EPSS

2.5%

Published

Jun 28, 2007

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A problem in a graphics library can make programs crash when they try to open certain specially made image files.

Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
Moderate
Impact
Denial Of Service
Component
Library
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Array index error in gd_gif_in.c allows out-of-bounds memory access when processing GIF images containing excessively large color index values, resulting in segmentation fault, process crash, and heap corruption.

Why it matters to the business

Applications or services that process untrusted image files can experience unexpected crashes and instability, leading to denial of service and potential operational disruption for image-handling workflows.

How an attack unfolds

An attacker creates a specially crafted GIF file embedding oversized color index values, then supplies the file to a vulnerable application that uses the affected GD library version; when the library parses the image data during processing, the array index error triggers memory corruption and immediate crash.

How to fix it

Upgrade affected installations of node (Bitnami) to version 18.11.0 or later, which incorporates the fix present in libgd 2.0.35; replace or rebuild any bundled copies of the GD library and restart dependent services.

How to confirm the fix worked

Verify the installed GD library version is at least 2.0.35 or the node (Bitnami) package is 18.11.0 or newer; test by attempting to process a sample GIF with oversized color indices and confirm absence of crash or corruption.

Typical attack path

  1. Generate malicious GIF containing large color index values exceeding array bounds
  2. Deliver crafted image via network or file upload to target application
  3. Victim application invokes vulnerable GD library to decode the GIF
  4. Library performs invalid array access leading to segmentation fault and heap corruption

How to detect it

Review application and system logs for segmentation faults or crashes occurring during image processing; search for repeated failures when handling GIF files from untrusted sources, though no public exploitation artifacts are known for this aged issue.

What your security team should do

  • Immediately upgrade node (Bitnami) to the fixed version 18.11.0
  • Audit all image-processing pipelines for use of vulnerable GD library versions
  • Implement input validation or sandboxing around image decoding routines until patches are applied

The record

Array index error in gd_gif_in.c in the GD Graphics Library (libgd) before 2.0.35 allows user-assisted remote attackers to cause a denial of service (crash and heap corruption) via large color index values in crafted image data, which results in a segmentation fault.

Affected packages

Ecosystem Package Introduced Fixed
Debian:10 libgd2 0 2.0.35.dfsg-1
Debian:10 libwmf 0 No fix
Debian:10 racket 0 5.0.2-1
Debian:11 libgd2 0 2.0.35.dfsg-1
Debian:11 libwmf 0 No fix
Debian:11 racket 0 5.0.2-1
Debian:12 libgd2 0 2.0.35.dfsg-1
Debian:12 libwmf 0 No fix
Debian:12 racket 0 5.0.2-1
Debian:13 libgd2 0 2.0.35.dfsg-1
Debian:13 libwmf 0 No fix
Debian:13 racket 0 5.0.2-1
Debian:4.0 libgd2 0 2.0.33-5.2etch1
Red Hat:enterprise_linux:4::as gd 0 0:2.0.28-5.4E.el4_6.1
Red Hat:enterprise_linux:4::as gd-debuginfo 0 0:2.0.28-5.4E.el4_6.1
Red Hat:enterprise_linux:4::as gd-devel 0 0:2.0.28-5.4E.el4_6.1
Red Hat:enterprise_linux:4::as gd-progs 0 0:2.0.28-5.4E.el4_6.1
Red Hat:enterprise_linux:4::desktop gd 0 0:2.0.28-5.4E.el4_6.1
Red Hat:enterprise_linux:4::desktop gd-debuginfo 0 0:2.0.28-5.4E.el4_6.1
Red Hat:enterprise_linux:4::desktop gd-devel 0 0:2.0.28-5.4E.el4_6.1
Red Hat:enterprise_linux:4::desktop gd-progs 0 0:2.0.28-5.4E.el4_6.1
Red Hat:enterprise_linux:4::es gd 0 0:2.0.28-5.4E.el4_6.1
Red Hat:enterprise_linux:4::es gd-debuginfo 0 0:2.0.28-5.4E.el4_6.1
Red Hat:enterprise_linux:4::es gd-devel 0 0:2.0.28-5.4E.el4_6.1
Red Hat:enterprise_linux:4::es gd-progs 0 0:2.0.28-5.4E.el4_6.1
Red Hat:enterprise_linux:4::ws gd 0 0:2.0.28-5.4E.el4_6.1
Red Hat:enterprise_linux:4::ws gd-debuginfo 0 0:2.0.28-5.4E.el4_6.1
Red Hat:enterprise_linux:4::ws gd-devel 0 0:2.0.28-5.4E.el4_6.1
Red Hat:enterprise_linux:4::ws gd-progs 0 0:2.0.28-5.4E.el4_6.1
Red Hat:enterprise_linux:5::client gd 0 0:2.0.33-9.4.el5_1.1
Red Hat:enterprise_linux:5::client gd-debuginfo 0 0:2.0.33-9.4.el5_1.1
Red Hat:enterprise_linux:5::client gd-devel 0 0:2.0.33-9.4.el5_1.1
Red Hat:enterprise_linux:5::client gd-progs 0 0:2.0.33-9.4.el5_1.1
Red Hat:enterprise_linux:5::client_workstation gd 0 0:2.0.33-9.4.el5_1.1
Red Hat:enterprise_linux:5::client_workstation gd-debuginfo 0 0:2.0.33-9.4.el5_1.1
Red Hat:enterprise_linux:5::client_workstation gd-devel 0 0:2.0.33-9.4.el5_1.1
Red Hat:enterprise_linux:5::client_workstation gd-progs 0 0:2.0.33-9.4.el5_1.1
Red Hat:enterprise_linux:5::server gd 0 0:2.0.33-9.4.el5_1.1
Red Hat:enterprise_linux:5::server gd-debuginfo 0 0:2.0.33-9.4.el5_1.1
Red Hat:enterprise_linux:5::server gd-devel 0 0:2.0.33-9.4.el5_1.1
Red Hat:enterprise_linux:5::server gd-progs 0 0:2.0.33-9.4.el5_1.1

Related vulnerabilities