Input validation error in PHP - CVE-2008-4107
Published: October 30, 2018 / Updated: June 8, 2025
PHP
Detailed vulnerability description
The vulnerability allows a remote non-authenticated attacker to read and manipulate data.
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. Download the latest version of PHP to fix this vulnerability: http://www.php.net/downloads.php
How to mitigate CVE-2008-4107
Sources
- http://marc.info/?l=oss-security&m=122152830017099&w=2
- http://osvdb.org/48700
- http://secunia.com/advisories/31737
- http://secunia.com/advisories/31870
- http://securityreason.com/securityalert/4271
- http://securitytracker.com/id?1020869
- http://wordpress.org/development/2008/09/wordpress-262/
- http://www.openwall.com/lists/oss-security/2008/09/11/6
- http://www.securityfocus.com/archive/1/496237/100/0/threaded
- http://www.securityfocus.com/archive/1/496287/100/0/threaded
- http://www.securityfocus.com/bid/31115
- http://www.sektioneins.de/advisories/SE-2008-02.txt
- http://www.sektioneins.de/advisories/SE-2008-04.txt
- http://www.sektioneins.de/advisories/SE-2008-05.txt
- http://www.suspekt.org/2008/08/17/mt_srand-and-not-so-random-numbers/
- http://www.vupen.com/english/advisories/2008/2553
- https://exchange.xforce.ibmcloud.com/vulnerabilities/45956
- https://www.redhat.com/archives/fedora-package-announce/2008-September/msg00607.html
- https://www.redhat.com/archives/fedora-package-announce/2008-September/msg00629.html