CVE-2007-2727
What it is
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.
At a glance
- Exploitability
- Can be exploited over the network without logging in. Limited direct impact.
- Exploit odds
- 1.9% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 1.9% in the next 30 days (EPSS).
- Severity: 2.6 LOW (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 1.9% · EPSS, next 30 days
- Record status
- Modified
Affected
- PHP < 4.4.7
- PHP < 5.2.2
- PHP 4.0.1
- PHP 4.0.2
- PHP 4.0.3
- PHP 4.0.4
- PHP 4.0.5
- PHP 4.0.6
Attack profile CVSS 2.0 · 2.6
- Attack vector
- Network
- Complexity
- High
- Authentication
- None
- Confidentiality
- Partial
- Integrity
- None
- Availability
- None
Raw vector
AV:N/AC:H/Au:N/C:P/I:N/A:N
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2007-2727.md and follow it. Check whether this project is affected by CVE-2007-2727. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- http://blog.php-security.org/archives/80-Watching-the-PHP-CVS.html
- http://bugs.php.net/bug.php?id=40999
- 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://www.fortheloot.com/public/mcrypt.patch
- http://www.php.net/ChangeLog-5.php
- http://blog.php-security.org/archives/80-Watching-the-PHP-CVS.html
- http://bugs.php.net/bug.php?id=40999
- 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://www.fortheloot.com/public/mcrypt.patch
- http://www.php.net/ChangeLog-5.php
References
- http://blog.php-security.org/archives/80-Watching-the-PHP-CVS.html
- http://bugs.php.net/bug.php?id=40999
- 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://osvdb.org/36087
- http://secunia.com/advisories/26895
- http://www.fortheloot.com/public/mcrypt.patch
- http://www.mandriva.com/security/advisories?name=MDKSA-2007:187
- http://www.novell.com/linux/security/advisories/2007_15_sr.html
- http://www.php.net/ChangeLog-5.php
- http://www.securityfocus.com/bid/23984
- http://blog.php-security.org/archives/80-Watching-the-PHP-CVS.html
- http://bugs.php.net/bug.php?id=40999
- 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://osvdb.org/36087
- http://secunia.com/advisories/26895
- http://www.fortheloot.com/public/mcrypt.patch
- http://www.mandriva.com/security/advisories?name=MDKSA-2007:187
- http://www.novell.com/linux/security/advisories/2007_15_sr.html
- http://www.php.net/ChangeLog-5.php
- http://www.securityfocus.com/bid/23984