Description
The mcrypt_create_iv function in ext/mcrypt/mcrypt.c in PHP before 4.4.7, 5.2.1, and possibly 5.0.x and other PHP 5 versions, calls php_rand_r with an uninitialized seed variable and therefore always generates the same initialization vector (IV), which might allow context-dependent attackers to decrypt certain data more easily because of the guessable encryption keys.
References (10)
Core 10
Core References
Third Party Advisory, VDB Entry vdb-entry
x_refsource_bid
http://www.securityfocus.com/bid/23984
Exploit, Patch, Third Party Advisory x_refsource_misc
http://www.fortheloot.com/public/mcrypt.patch
Vendor Advisory x_refsource_confirm
http://cvs.php.net/viewvc.cgi/php-src/ext/mcrypt/mcrypt.c?r1=1.91.2.3.2.9&r2=1.91.2.3.2.10
Vendor Advisory x_refsource_misc
http://blog.php-security.org/archives/80-Watching-the-PHP-CVS.html
Vendor Advisory x_refsource_confirm
http://www.php.net/ChangeLog-5.php
Vendor Advisory x_refsource_confirm
http://bugs.php.net/bug.php?id=40999
Broken Link vendor-advisory
x_refsource_mandriva
http://www.mandriva.com/security/advisories?name=MDKSA-2007:187
Broken Link third-party-advisory
x_refsource_secunia
http://secunia.com/advisories/26895
Third Party Advisory vendor-advisory
x_refsource_suse
http://www.novell.com/linux/security/advisories/2007_15_sr.html
Broken Link vdb-entry
x_refsource_osvdb
http://osvdb.org/36087
Scores
EPSS
0.0047
EPSS Percentile
64.6%
Details
Status
published
Products (27)
php/php
4.0.1 (3 CPE variants)
php/php
4.0.2
php/php
4.0.3 (2 CPE variants)
php/php
4.0.4
php/php
4.0.5
php/php
4.0.6
php/php
4.0.7 (4 CPE variants)
php/php
4.1.0
php/php
4.1.1
php/php
4.1.2
... and 17 more
Published
May 16, 2007
Tracked Since
Feb 18, 2026