CVE-2007-4033

t1lib 5.1.1 - Buffer Overflow

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 2 public exploits for CVE-2007-4033. PoCs published by r0ut3r.

AI-analyzed exploit summary This exploit demonstrates a buffer overflow vulnerability in the PHP GD2 extension's imagepsloadfont function. It triggers a crash by passing an overly long string argument, leading to an access violation.

Description

Buffer overflow in the intT1_EnvGetCompletePath function in lib/t1lib/t1env.c in t1lib 5.1.1 allows context-dependent attackers to execute arbitrary code via a long FileName parameter. NOTE: this issue was originally reported to be in the imagepsloadfont function in php_gd2.dll in the gd (PHP_GD2) extension in PHP 5.2.3.

Exploits (2)

exploitdb WORKING POC VERIFIED
by r0ut3r · phpdoswindows
https://www.exploit-db.com/exploits/4227

This exploit demonstrates a buffer overflow vulnerability in the PHP GD2 extension's imagepsloadfont function. It triggers a crash by passing an overly long string argument, leading to an access violation.

Classification
Working Poc 95%
Attack Type
Dos
Complexity
Trivial
Reliability
Reliable
Target: PHP GD2 extension (php_gd2.dll) in PHP 5.2.3
No auth needed
Prerequisites: PHP with GD2 extension loaded · Windows XP SP0 environment
devstral-2 · analyzed Feb 16, 2026 Full analysis →
exploitdb WORKING POC VERIFIED
by r0ut3r · phpdosphp
https://www.exploit-db.com/exploits/30401

This exploit demonstrates a buffer overflow vulnerability in the T1lib library via the PHP `imagepsloadfont` function. It triggers a crash by passing an excessively long string (9999 'A' characters), potentially leading to arbitrary code execution.

Classification
Working Poc 90%
Attack Type
Rce
Complexity
Trivial
Reliability
Racy
Target: T1lib (via PHP GD2 extension, php_gd2.dll)
No auth needed
Prerequisites: PHP with GD2 extension loaded · Vulnerable version of T1lib
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (40)

Core 40
Core References
Various Sources x_refsource_misc
http://www.bugtraq.ir/adv/t1lib.txt
Third Party Advisory vendor-advisory x_refsource_gentoo
http://security.gentoo.org/glsa/glsa-200710-12.xml
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/27743
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/26901
Third Party Advisory, VDB Entry vdb-entry signature x_refsource_oval
https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10557
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/35620
Mailing List vendor-advisory x_refsource_fedora
http://fedoranews.org/updates/FEDORA-2007-234.shtml
Third Party Advisory, VDB Entry mailing-list x_refsource_bugtraq
http://www.securityfocus.com/archive/1/480239/100/100/threaded
Third Party Advisory vendor-advisory x_refsource_debian
http://www.debian.org/security/2007/dsa-1390
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/27297
Third Party Advisory vendor-advisory x_refsource_gentoo
http://security.gentoo.org/glsa/glsa-200805-13.xml
Third Party Advisory, VDB Entry mailing-list x_refsource_bugtraq
http://www.securityfocus.com/archive/1/485823/100/0/threaded
Third Party Advisory x_refsource_confirm
http://wiki.rpath.com/wiki/Advisories:rPSA-2008-0007
Issue Tracking x_refsource_misc
https://bugzilla.redhat.com/show_bug.cgi?id=303021
Vendor Advisory vendor-advisory x_refsource_redhat
http://www.redhat.com/support/errata/RHSA-2007-1031.html
Vendor Advisory vendor-advisory x_refsource_mandriva
http://www.mandriva.com/security/advisories?name=MDKSA-2007:189
Exploit, Third Party Advisory exploit x_refsource_exploit-db
https://www.exploit-db.com/exploits/4227
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/30168
Issue Tracking x_refsource_confirm
https://issues.rpath.com/browse/RPL-1972
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/27239
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/26241
Third Party Advisory, VDB Entry mailing-list x_refsource_bugtraq
http://www.securityfocus.com/archive/1/480244/100/100/threaded
Exploit vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/25079
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/27718
Third Party Advisory vendor-advisory x_refsource_gentoo
http://security.gentoo.org/glsa/glsa-200711-34.xml
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/28345
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/27599
Vendor Advisory vendor-advisory x_refsource_ubuntu
http://www.ubuntu.com/usn/usn-515-1
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/27439
Third Party Advisory, VDB Entry vdb-entry x_refsource_sectrack
http://www.securitytracker.com/id?1018905
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/26981
Vendor Advisory vendor-advisory x_refsource_redhat
http://www.redhat.com/support/errata/RHSA-2007-1027.html
Vendor Advisory vendor-advisory x_refsource_redhat
http://www.redhat.com/support/errata/RHSA-2007-1030.html
Vendor Advisory vendor-advisory x_refsource_mandriva
http://www.mandriva.com/security/advisories?name=MDKSA-2007:230
Vendor Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/26992
Issue Tracking x_refsource_confirm
http://bugs.gentoo.org/show_bug.cgi?id=193437
Vendor Advisory vendor-advisory x_refsource_suse
http://www.novell.com/linux/security/advisories/2007_23_sr.html
Third Party Advisory, VDB Entry mailing-list x_refsource_bugtraq
http://www.securityfocus.com/archive/1/487984/100/0/threaded

Scores

EPSS 0.1866
EPSS Percentile 96.9%

Details

CWE
CWE-119
Status published
Products (2)
php/php 5.2.3
t1lib/t1lib 5.1.1
Published Jul 27, 2007
Tracked Since Feb 18, 2026