CVE-2008-4107: PHP

Medium severity, CVSS 5.1. EPSS: 3% chance of exploitation in the next 30 days.

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.

Affected products

  • PHP PHP: up to and including 4.4.8; version 4.0 only; version 4.0.0 only; version 4.0.1 only; version 4.0.2 only; version 4.0.3 only; …

Published 2008-09-18. Last modified 2026-06-16.