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.
Key facts
- CVSS score
- 2.6 (v2.0)
- Severity
- LOW
- CVSS vector
AV:N/AC:H/Au:N/C:P/I:N/A:N- EPSS score
- 1.9% (80th percentile)
- In CISA KEV
- No
- In EU EUVD
- Yes (EUVD-2007-2719)
- Published
- May 16, 2007
- NVD last modified
- June 16, 2026
- Status
- Modified
EU Vulnerability Database (EUVD)
This vulnerability is also tracked by ENISA as EUVD-2007-2719 in the EU Vulnerability Database. Last updated in EUVD on August 7, 2024.
View on the EU Vulnerability DatabaseAffected products
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
- php / php
References
- http://blog.php-security.org/archives/80-Watching-the-PHP-CVS.html(Vendor Advisory)
- http://bugs.php.net/bug.php?id=40999(Vendor 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.10(Vendor Advisory)
- http://osvdb.org/36087(Broken Link)
- http://secunia.com/advisories/26895(Broken Link)
- http://www.fortheloot.com/public/mcrypt.patch(Exploit, Patch, Third Party Advisory)
- http://www.mandriva.com/security/advisories?name=MDKSA-2007:187(Broken Link)
- http://www.novell.com/linux/security/advisories/2007_15_sr.html(Third Party Advisory)
- http://www.php.net/ChangeLog-5.php(Vendor Advisory)
- http://www.securityfocus.com/bid/23984(Third Party Advisory, VDB Entry)
Last updated September 17, 2026 · Source: NVD, CISA KEV, FIRST.org EPSS
Query CVEs from your AI assistant
The CVE/NVD Explorer brain answers CVE questions directly inside Claude, ChatGPT, or any MCP assistant — always up to date, no setup. Add it once and stop pasting advisories into chat.
Add the CVE brain