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.
| Type | CWE ID | Description |
|---|---|---|
| text | N/A | n/a |
| Version | Base score | Base severity | Vector |
|---|
| CAPEC ID | Description |
|---|
| Event | Date |
|---|
| Hyperlink | Resource |
|---|---|
| http://www.securityfocus.com/bid/23984 | vdb-entry x_refsource_BID |
| http://www.fortheloot.com/public/mcrypt.patch | x_refsource_MISC |
| 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 | x_refsource_CONFIRM |
| http://blog.php-security.org/archives/80-Watching-the-PHP-CVS.html | x_refsource_MISC |
| http://www.php.net/ChangeLog-5.php | x_refsource_CONFIRM |
| http://bugs.php.net/bug.php?id=40999 | x_refsource_CONFIRM |
| http://www.mandriva.com/security/advisories?name=MDKSA-2007:187 | vendor-advisory x_refsource_MANDRIVA |
| http://secunia.com/advisories/26895 | third-party-advisory x_refsource_SECUNIA |
| http://www.novell.com/linux/security/advisories/2007_15_sr.html | vendor-advisory x_refsource_SUSE |
| http://osvdb.org/36087 | vdb-entry x_refsource_OSVDB |
| Version | Base score | Base severity | Vector |
|---|
| CAPEC ID | Description |
|---|
| Event | Date |
|---|
| Hyperlink | Resource |
|---|---|
| http://www.securityfocus.com/bid/23984 | vdb-entry x_refsource_BID x_transferred |
| http://www.fortheloot.com/public/mcrypt.patch | x_refsource_MISC x_transferred |
| 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 | x_refsource_CONFIRM x_transferred |
| http://blog.php-security.org/archives/80-Watching-the-PHP-CVS.html | x_refsource_MISC x_transferred |
| http://www.php.net/ChangeLog-5.php | x_refsource_CONFIRM x_transferred |
| http://bugs.php.net/bug.php?id=40999 | x_refsource_CONFIRM x_transferred |
| http://www.mandriva.com/security/advisories?name=MDKSA-2007:187 | vendor-advisory x_refsource_MANDRIVA x_transferred |
| http://secunia.com/advisories/26895 | third-party-advisory x_refsource_SECUNIA x_transferred |
| http://www.novell.com/linux/security/advisories/2007_15_sr.html | vendor-advisory x_refsource_SUSE x_transferred |
| http://osvdb.org/36087 | vdb-entry x_refsource_OSVDB x_transferred |