CVE-2007-2727

high

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

http://www.securityfocus.com/bid/23984

http://www.php.net/ChangeLog-5.php

http://www.novell.com/linux/security/advisories/2007_15_sr.html

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

http://bugs.php.net/bug.php?id=40999

http://blog.php-security.org/archives/80-Watching-the-PHP-CVS.html

Details

Source: Mitre, NVD

Published: 2007-05-16

Updated: 2022-11-07

Risk Information

CVSS v2

Base Score: 2.6

Vector: CVSS2#AV:N/AC:H/Au:N/C:P/I:N/A:N

Severity: Low

CVSS v3

Base Score: 7.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Severity: High