Skip to content
OpenAdvisories
Unscored Public exploit CVE-2007-1001 EUVD-2007-0998GHSA-62rc-79c5-9jv7

Multiple integer overflows in the (1) createwbmp and (2) readwbmp functions in wbmp.c in the GD library (libgd) in PHP 4.0.0 through 4.4.6 …

Published Apr 6, 2007 · Updated Aug 7, 2024 · Assigned by redhat

Description

Multiple integer overflows in the (1) createwbmp and (2) readwbmp functions in wbmp.c in the GD library (libgd) in PHP 4.0.0 through 4.4.6 and 5.0.0 through 5.2.1 allow context-dependent attackers to execute arbitrary code via Wireless Bitmap (WBMP) images with large width or height values.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libgd2 2.0.33-1 —
Debian 13 libgd2 2.0.33-1 —
Debian 12 libgd2 2.0.33-1 —
ReleasePackageFixed inAdvisory
RHEL 5 php +18 5.1.6-11.el5 RHSA-2007:0153
RHEL 4 php +13 4.3.9-3.22.4 RHSA-2007:0155
RHEL 3 php +6 4.3.2-40.ent RHSA-2007:0155
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Rhel Application Stack 1 php +18 5.1.6-3.el4s1.6 RHSA-2007:0162

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 3

References