Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 180558

Summary: dev-lang/php crypt() Race Condition Vulnerability (CVE-2007-2844)
Product: Gentoo Security Reporter: Lars Hartmann <lars>
Component: VulnerabilitiesAssignee: Gentoo Security <security>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://secunia.com/advisories/25434/
Whiteboard:
Package list:
Runtime testing required: ---

Description Lars Hartmann 2007-06-01 15:50:41 UTC
Stefan Esser has reported a vulnerability in PHP, which can be exploited by malicious people to bypass certain security restrictions.

The vulnerability is caused due to a race condition when calling the system's "crypt()" function on multi threaded systems. The problem is that two threads validating passwords at the same time are using the same internal memory. This can lead to a successful authentication with an invalid password.

The vulnerability is reported in PHP 5 prior to 5.2.1 on UNIX systems. PHP 4 and PHP 5 on Windows systems may also be affected.

Solution:
Do not use the "crypt()" function in a multi threaded environment.

PHP 5 for UNIX systems:
Update to version 5.2.1 or later.

Provided and/or discovered by:
Stefan Esser

Reproducible: Always
Comment 1 Lars Hartmann 2007-06-01 15:52:04 UTC
Ooops, Gentoo already has the version stable - sory guys