CVE-2007-2727Php
Low 2.6 No auth needed
Follow: this CVE · Php · Php We alert you by email or Slack (account required).
- Priority
- 31
- CVSS 2.0
- 2.6
- EPSS
- 1.9% probability of exploitation in 30 days · percentile 80
- Auth required
- No
- Published
- May 16, 2007
- Updated
- Jun 16, 2026
- Category
- Web application · Cross-platform
- Vector
AV:N/AC:H/Au:N/C:P/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Php.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| php | php | ≥ 4.4.0 < 4.4.7 |
| php | php | ≥ 5.0.0 < 5.2.2 |
| php | php | 4.0.1 |
| php | php | 4.0.1 |
| php | php | 4.0.1 |
| php | php | 4.0.2 |
| php | php | 4.0.3 |
| php | php | 4.0.3 |
| php | php | 4.0.4 |
| php | php | 4.0.5 |
| php | php | 4.0.6 |
| php | php | 4.0.7 |
| php | php | 4.0.7 |
| php | php | 4.0.7 |
| php | php | 4.0.7 |
| php | php | 4.1.0 |
| php | php | 4.1.1 |
| php | php | 4.1.2 |
| php | php | 4.2.0 |
| php | php | 4.2.1 |
| php | php | 4.2.2 |
| php | php | 4.2.3 |
| php | php | 4.3.0 |
| php | php | 4.3.1 |
| php | php | 4.3.2 |
| php | php | 4.3.3 |
| php | php | 4.3.4 |
| php | php | 4.3.5 |
| php | php | 4.3.6 |
| php | php | 4.3.7 |
| php | php | 4.3.8 |
| php | php | 4.3.9 |
| php | php | 4.3.10 |
| php | php | 4.3.11 |
Official sources
References
Links published by the sources. Open them with care.
- blog.php-security.org Vendor Advisory
- bugs.php.net Vendor Advisory
- cvs.php.net Vendor Advisory
- osvdb.org Broken Link
- secunia.com Broken Link
- www.fortheloot.com Exploit Patch Third Party Advisory
- www.mandriva.com Broken Link
- www.novell.com Third Party Advisory
- www.php.net Vendor Advisory
- www.securityfocus.com Third Party Advisory VDB Entry