Live threats

All CVEs / Php

CVE-2007-2727Php

Low 2.6 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Php.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
phpphp≥ 4.4.0 < 4.4.7
phpphp≥ 5.0.0 < 5.2.2
phpphp4.0.1
phpphp4.0.1
phpphp4.0.1
phpphp4.0.2
phpphp4.0.3
phpphp4.0.3
phpphp4.0.4
phpphp4.0.5
phpphp4.0.6
phpphp4.0.7
phpphp4.0.7
phpphp4.0.7
phpphp4.0.7
phpphp4.1.0
phpphp4.1.1
phpphp4.1.2
phpphp4.2.0
phpphp4.2.1
phpphp4.2.2
phpphp4.2.3
phpphp4.3.0
phpphp4.3.1
phpphp4.3.2
phpphp4.3.3
phpphp4.3.4
phpphp4.3.5
phpphp4.3.6
phpphp4.3.7
phpphp4.3.8
phpphp4.3.9
phpphp4.3.10
phpphp4.3.11

Official sources

References

Links published by the sources. Open them with care.