Vulnerability in PHP
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 might allow context-dependent attackers to decrypt certain data more easily because of the guessable encryption keys.
Published · last modified .
CVSS v2 metric
CVSS v2 base score 2.6 (Low). Vector: AV:N/AC:H/Au:N/C:P/I:N/A:N. This CVE predates CVSS v3 and has no v3 score from NVD.
EPSS exploit prediction
EPSS 0.019, 80.0th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- PHP — versions 4.0.1, 4.0.2, 4.0.3
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (Live-Hack-CVE/CVE-2007-2727). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- www.securityfocus.com/bid/23984 (Third Party Advisory, VDB Entry, vdb-entry)
- www.fortheloot.com/public/mcrypt.patch (Exploit, Patch, Third Party Advisory)
- cvs.php.net/viewvc.cgi/php-src/ext/mcrypt/mcrypt.c (Vendor Advisory)
- blog.php-security.org/archives/80-Watching-the-PHP-CVS.html (Vendor Advisory)
- www.php.net/ChangeLog-5.php (Vendor Advisory)
- bugs.php.net/bug.php (Vendor Advisory)
- MDKSA-2007:187 (vendor-advisory, Broken Link)
- secunia.com/advisories/26895 (Broken Link, third-party-advisory)
- SUSE-SR:2007:015 (vendor-advisory, Third Party Advisory)
- osvdb.org/36087 (vdb-entry, Broken Link)