All vulnerabilities

Servers and applications

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 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.

Severity
Low 2.6
Published
16 May 2007
Last changed
16 Jun 2026
Added to UpHeron
14 Oct 2026
Fixed in
4.4.7, 5.2.2
Exploit chance
1.9% in the next 30 daysHigher than 79% of CVEs. EPSS by FIRST, 12 Nov 2026
Attack
Over the network · Only under certain conditions · No login needed
Attacker can
Read some data
CVSS vector
AV:N/AC:H/Au:N/C:P/I:N/A:N
Sources
NVD

Affected software

SoftwareAffected versions
PHPServers and applications · cpe:a:php:php
  • From 5.0.0 before 5.2.2
  • From 4.4.0 before 4.4.7
  • Version 4.3.11
  • Version 4.3.10
All 34 release lines
  • Version 4.0.1
  • Version 4.0.1-patch1
  • Version 4.0.1-patch2
  • Version 4.0.2
  • Version 4.0.3
  • Version 4.0.3-patch1
  • Version 4.0.4
  • Version 4.0.5
  • Version 4.0.6
  • Version 4.0.7-rc1
  • Version 4.0.7-rc2
  • Version 4.0.7-rc3
  • Version 4.0.7
  • Version 4.1.0
  • Version 4.1.1
  • Version 4.1.2
  • Version 4.2.0
  • Version 4.2.1
  • Version 4.2.2
  • Version 4.2.3
  • Version 4.3.0
  • Version 4.3.1
  • Version 4.3.2
  • Version 4.3.3
  • Version 4.3.4
  • Version 4.3.5
  • Version 4.3.6
  • Version 4.3.7
  • Version 4.3.8
  • Version 4.3.9
  • Version 4.3.10
  • Version 4.3.11
  • From 4.4.0 before 4.4.7
  • From 5.0.0 before 5.2.2

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2007-2727
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2007-2727