Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 180558 - dev-lang/php crypt() Race Condition Vulnerability (CVE-2007-2844)
Summary: dev-lang/php crypt() Race Condition Vulnerability (CVE-2007-2844)
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Security
URL: http://secunia.com/advisories/25434/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-01 15:50 UTC by Lars Hartmann
Modified: 2007-06-01 15:52 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 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