Back
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…
Low2.6EPSS 1.9%
- Published
- Updated
- Reserved
- Assigned by
- mitre
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 2.0 | Low2.6 | AV:N/AC:H/Au:N/C:P/I:N/A:N |
- EPSS (exploitation in 30 days)
- 1.9% · top 20% of all CVEs (4 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Low 2.6.
Weakness
- n/a
Affected products
n/a
- affected n/a
References (10)
- 23984 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- http://www.fortheloot.com/public/mcrypt.patch (opens in a new tab)x_refsource_MISCx_transferred
- 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 (opens in a new tab)x_refsource_CONFIRMx_transferred
- http://blog.php-security.org/archives/80-Watching-the-PHP-CVS.html (opens in a new tab)x_refsource_MISCx_transferred
- http://www.php.net/ChangeLog-5.php (opens in a new tab)x_refsource_CONFIRMx_transferred
- http://bugs.php.net/bug.php?id=40999 (opens in a new tab)x_refsource_CONFIRMx_transferred
- MDKSA-2007:187 (opens in a new tab)vendor-advisoryx_refsource_MANDRIVAx_transferred
- 26895 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- SUSE-SR:2007:015 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- 36087 (opens in a new tab)vdb-entryx_refsource_OSVDBx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2007-2727)Record last updated .