CVE-2007-3477
NoneCVSS
—
EPSS
4.9%
Published
Jun 28, 2007
CISA due date
—
Cloudanix analysis
A graphics library flaw lets attackers make systems slow down or become unavailable by sending specially crafted image requests that waste processing power.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Denial of service
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The vulnerability allows remote attackers to trigger excessive CPU usage in the GD library by providing extremely large angle values to the imagearc or imagefilledarc functions, leading to a denial of service condition.
Why it matters to the business
Attackers can cause application downtime or degraded performance by consuming excessive CPU resources, impacting availability of services using the affected library; public exploit code has existed for years with negligible EPSS change.
How an attack unfolds
An attacker crafts a request that invokes the imagearc or imagefilledarc functions with very large start or end angle parameters, causing the library to enter a resource-intensive loop; given the 2007 disclosure and available exploit maturity, this can be performed remotely without authentication.
How to fix it
Upgrade affected node (Bitnami) installations to version 14.14.0 or 14.21.1 or later.
How to confirm the fix worked
Verify the installed version of node (Bitnami) meets or exceeds 14.14.0 or 14.21.1, and test image generation functions with large angle inputs to confirm absence of excessive CPU consumption.
Typical attack path
- Identify an endpoint that processes image generation using the GD library
- Craft a malicious request containing extreme start or end angle degree values
- Send the request to trigger sustained high CPU consumption
- Repeat or automate requests to maintain denial of service
How to detect it
Review application and web server logs for image processing requests containing unusually large numeric angle parameters; correlate with system metrics showing unexplained CPU saturation on affected hosts.
What your security team should do
- Apply the listed fixed versions immediately given long-public exploit availability
- Restrict or rate-limit unauthenticated access to image generation endpoints until patched
- Monitor CPU utilization on hosts running the affected library for anomalous sustained spikes
The record
The (a) imagearc and (b) imagefilledarc functions in GD Graphics Library (libgd) before 2.0.35 allow attackers to cause a denial of service (CPU consumption) via a large (1) start or (2) end angle degree value.
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 |
Related vulnerabilities
- CVE-2014-2497 The gdImageCreateFromXpm function in gdxpm.c in libgd, as used in PHP 5.4.26 and earlier… Also affects libgd2
- CVE-2009-3546 The _gdGetColors function in gd_gd.c in PHP 5.2.11 and 5.3.x before 5.3.1, and the GD… Also affects libgd2
- CVE-2007-3996 Multiple integer overflows in libgd in PHP before 5.2.4 allow remote attackers to cause a… Also affects libgd2
- CVE-2007-3473 The gdImageCreateXbm function in the GD Graphics Library (libgd) before 2.0.35 allows… Also affects libgd2
- CVE-2007-3476 Array index error in gd_gif_in.c in the GD Graphics Library (libgd) before 2.0.35 allows… Also affects libgd2
- CVE-2007-0455 Buffer overflow in the gdImageStringFTEx function in gdft.c in GD Graphics Library 2.0.33… Also affects libgd2
- CVE-2006-2906 The LZW decoding in the gdImageCreateFromGifPtr function in the Thomas Boutell graphics… Also affects libgd2
- CVE-2017-6362 Double free vulnerability in the gdImagePngPtr function in libgd2 before 2.2.5 allows… Also affects libgd2