Vulnerabilities · 2007 · Php
CVE-2007-2727
Php vulnerability
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.
Affected products
Php. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Php runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- blog.php-security.org/archives/80-Watching-the-PHP-CVS.html · Vendor Advisory
- bugs.php.net/bug.php?id=40999 · Vendor Advisory
- 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
- www.php.net/ChangeLog-5.php · Vendor Advisory
- www.fortheloot.com/public/mcrypt.patch · Exploit
- www.novell.com/linux/security/advisories/2007_15_sr.html · Third Party Advisory
- www.securityfocus.com/bid/23984 · Third Party Advisory
- osvdb.org/36087
- nvd.nist.gov/vuln/detail/CVE-2007-2727
- cve.org/CVERecord?id=CVE-2007-2727
More vulnerabilities in Php products
CVE-2025-14180CVE-2025-14178CVE-2025-14177CVE-2025-6491CVE-2025-1861CVE-2025-1736CVE-2025-1735CVE-2025-1734All 740
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.