Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 87574 - dev-php/php: Infinite Loops in getimagesize() Lets Users Deny Service
Summary: dev-php/php: Infinite Loops in getimagesize() Lets Users Deny Service
Status: RESOLVED DUPLICATE of bug 87517
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Security
URL: http://securitytracker.com/alerts/200...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-01 09:12 UTC by Jean-François Brunette (RETIRED)
Modified: 2005-07-17 13:06 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-François Brunette (RETIRED) gentoo-dev 2005-04-01 09:12:19 UTC
Description:  iDEFENSE reported a vulnerability in PHP in getimagesize(). A user can cause denial of service conditions.

A user can create a specially crafted image file that, when processed by getimagesize(), will cause the php_handle_iff() function in 'ext/standard/image.c' to enter an infinite loop [CVE: CAN-2005-0524]. A file with the 'size' value set to '-8' can trigger the vulnerability.

A user can create a JPEG file with specially crafted file length field in the header to trigger an infinite loop in php_handle_jpeg() [CVE: CAN-2005-0525].

If a remote user can supply an image to the target system, then these vulnerabilities can be exploited by remote users.

The vendor was notified on February 23, 2005.

The original advisory is available at:

http://www.idefense.com/application/poi/di splay?id=222&type=vulnerabilities
Impact:  A user can cause the PHP process on the target system to consume all available CPU resources.
Solution:  The vendor has issued a fixed version (5.0.4), available at:

http://www.php.net/downloads.php
Comment 1 Thierry Carrez (RETIRED) gentoo-dev 2005-04-01 13:33:56 UTC

*** This bug has been marked as a duplicate of 87517 ***