CVE-2007-2727 json
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_ran…
published 2007-05-16 19 y ago modified 2026-06-16 4 mo ago also EUVD-2007-2719
- cvss
- 2.6
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.9%
- EPSS 1.9% chance of exploitation in 30 days, percentile 79%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
Exploit prediction
1.90% chance of exploitation in the next 30 days, higher than 79% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- fortheloot.com http://www.fortheloot.com/public/mcrypt.patch referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 2.6 | AV:N/AC:H/Au:N/C:P/I:N/A:N |
Classification
- Technology feeds
References
-
fortheloot.com
/public/mcrypt.patch
exploit, patch, third-party-advisory
-
mandriva.com
/security/advisories?name=MDKSA-2007:187
vendor-advisory, broken-link
-
novell.com
/linux/security/advisories/2007_15_sr.html
vendor-advisory, third-party-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
-
blog.php-security.org
/archives/80-Watching-the-PHP-CVS.html
vendor-advisory
-
php.net
/ChangeLog-5.php
vendor-advisory
-
bugs.php.net
/bug.php?id=40999
vendor-advisory
-
securityfocus.com
/bid/23984
vdb-entry, third-party-advisory
-
secunia.com
/advisories/26895
third-party-advisory, broken-link
-
osvdb.org
/36087
vdb-entry, broken-link
Sources
- CVE List CVE-2007-2727
- NVD CVE-2007-2727
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.