PHP imagepsloadfont buffer overflow

php-imagepsloadfont-bo (35620) The risk level is classified as HighHigh Risk

Description:

PHP is vulnerable to a buffer overflow, caused by improper bounds checking by the imagepsloadfont function. By sending a specially-crafted request, a remote attacker could overflow a buffer and execute arbitrary code on the system.

Note: In order to exploit this vulnerability, the GD (php_gd2.dll) extension for PHP must be enabled.

Platforms Affected:

  • Canonical, Ubuntu 6.06 LTS
  • Canonical, Ubuntu 6.10
  • Canonical, Ubuntu 7.04
  • Debian, Debian Linux 3.1
  • Debian, Debian Linux 4.0
  • Gentoo, Linux
  • MandrakeSoft, Mandrake Linux 2007 X86_64
  • MandrakeSoft, Mandrake Linux 2007
  • MandrakeSoft, Mandrake Linux 2007.1 X86_64
  • MandrakeSoft, Mandrake Linux 2007.1
  • MandrakeSoft, Mandrake Linux 2008.0
  • MandrakeSoft, Mandrake Linux 2008.0 X86_64
  • MandrakeSoft, Mandrake Linux Corporate Server 3.0 X86_64
  • MandrakeSoft, Mandrake Linux Corporate Server 3.0
  • MandrakeSoft, Mandrake Linux Corporate Server 4.0
  • MandrakeSoft, Mandrake Linux Corporate Server 4.0 X86_64
  • PHP, PHP 5.2.3
  • RedHat, Enterprise Linux 2.1 ES
  • RedHat, Enterprise Linux 2.1 WS
  • RedHat, Enterprise Linux 2.1 AS
  • RedHat, Enterprise Linux 3 ES
  • RedHat, Enterprise Linux 3 WS
  • RedHat, Enterprise Linux 3 Desktop
  • RedHat, Enterprise Linux 3 AS
  • RedHat, Enterprise Linux 4 Desktop
  • RedHat, Enterprise Linux 4 WS
  • RedHat, Enterprise Linux 4 AS
  • RedHat, Enterprise Linux 4 ES
  • RedHat, Enterprise Linux 5 Client
  • RedHat, Enterprise Linux 5
  • RedHat, Linux Advanced Workstation 2.1 Itanium

Remedy:

For Ubuntu Linux (t1lib):
Refer to USN-515-1 for patch, upgrade, or suggested workaround information. See References.

For Mandriva Linux (t1lib):
Refer to MDKSA-2007:189 for patch, upgrade, or suggested workaround information. See References.

For other distributions:
Apply the appropriate update for your system. See References.

Consequences:

Gain Access

References:

  • PHP Web site, PHP: Image Functions - Manual at http://us.php.net/gd.
  • BID-25079: T1lib intT1_Env_GetCompletePath Buffer Overflow Vulnerability
  • CVE-2007-4033: 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.
  • DSA-1390: t1lib -- buffer overflow
  • GLSA-200710-12: T1Lib: Buffer overflow
  • GLSA-200711-34: CSTeX: Multiple vulnerabilities
  • MDKSA-2007:189: Updated t1lib packages fix vulnerability
  • MDKSA-2007:230: Updated tetex packages fix vulnerabilities
  • RHSA-2007-1027: Important: tetex security update
  • RHSA-2007-1030: Important: xpdf security update
  • RHSA-2007-1031: Important: xpdf security update
  • SA26241: t1lib "intT1_EnvGetCompletePath()" Buffer Overflow
  • SECTRACK ID: 1018905: Xpdf Bugs in streams and t1lib Let Remote Users Execute Arbitrary Code
  • SUSE-SR:2007:023: SUSE Security Summary Report
  • USN-515-1: t1lib vulnerability

Reported:

Jul 26, 2007

The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.

Copyright (c) 1994-2008 Internet Security Systems, Inc. All rights reserved worldwide.

For corrections or additions please email xforce@iss.net

Return to the main page