CVE-2007-2727
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…
Does this matter?
Lower severity and a low EPSS score (1.86%). Track it; it rarely justifies an emergency change on its own.
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.
- CVSS 2.0
- 2.6 LOWAV:N/AC:H/Au:N/C:P/I:N/A:N
- EPSS
- 1.86% probability · 78th percentile
- CISA KEV
- Not listed
- Affected
- php/php
- Source
- cve@mitre.org
References
- http://blog.php-security.org/archives/80-Watching-the-PHP-CVS.htmlVendor Advisory
- http://bugs.php.net/bug.php?id=40999Vendor Advisory
- 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.10Vendor Advisory
- http://osvdb.org/36087Broken Link
- http://secunia.com/advisories/26895Broken Link
- http://www.fortheloot.com/public/mcrypt.patchExploit, Patch, Third Party Advisory
- http://www.mandriva.com/security/advisories?name=MDKSA-2007:187Broken Link
- http://www.novell.com/linux/security/advisories/2007_15_sr.htmlThird Party Advisory
- http://www.php.net/ChangeLog-5.phpVendor Advisory
- http://www.securityfocus.com/bid/23984Third Party Advisory, VDB Entry
- http://blog.php-security.org/archives/80-Watching-the-PHP-CVS.htmlVendor Advisory
- http://bugs.php.net/bug.php?id=40999Vendor Advisory
- 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.10Vendor Advisory
- http://osvdb.org/36087Broken Link
- http://secunia.com/advisories/26895Broken Link
- http://www.fortheloot.com/public/mcrypt.patchExploit, Patch, Third Party Advisory
- http://www.mandriva.com/security/advisories?name=MDKSA-2007:187Broken Link
- http://www.novell.com/linux/security/advisories/2007_15_sr.htmlThird Party Advisory
- http://www.php.net/ChangeLog-5.phpVendor Advisory
- http://www.securityfocus.com/bid/23984Third Party Advisory, VDB Entry
Source: NVD record, EPSS from FIRST.org, KEV from CISA. Refreshed daily.