Live threats

All CVEs / Php

CVE-2008-4107Php

Medium 5.1 No auth needed

Priority
46
CVSS 2.0
5.1
EPSS
3.0%
probability of exploitation in 30 days · percentile 88
Auth required
No
Published
Sep 18, 2008
Updated
Jun 16, 2026
Category
Web application · Cross-platform
Weakness (CWE)
CWE-189
Vector
AV:N/AC:H/Au:N/C:P/I:P/A:P

What happens

The (1) rand and (2) mt_rand functions in PHP 5.2.6 do not produce cryptographically strong random numbers, which allows attackers to leverage exposures in products that rely on these functions for security-relevant functionality, as demonstrated by the password-reset functionality in Joomla! 1.5.x and WordPress before 2.6.2, a different vulnerability than CVE-2008-2107, CVE-2008-2108, and CVE-2008-4102.

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.8
phpphp4.0
phpphp4.0
phpphp4.0
phpphp4.0
phpphp4.0.0
phpphp4.0.1
phpphp4.0.1
phpphp4.0.1
phpphp4.0.2
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
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
phpphp4.4.0
phpphp4.4.1
phpphp4.4.2
phpphp4.4.3
phpphp4.4.4
phpphp4.4.5
phpphp4.4.6
phpphp4.4.7
phpphp≤ 5.2.5
phpphp5.0.0
phpphp5.0.0
phpphp5.0.0
phpphp5.0.0
phpphp5.0.1
phpphp5.0.4
phpphp5.0.5
phpphp5.1.0
phpphp5.1.2
phpphp5.1.4
phpphp5.1.5
phpphp5.1.6
phpphp5.2.0

and 4 more in the JSON

Official sources

References

Links published by the sources. Open them with care.