SecurityContext

CVE-2008-4107: PHP - Weak Random Number Generator

  • Cve: CVE-2008-4107
  • Name: PHP - Weak Random Number Generator
  • Description: 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.
  • Impact: Attackers can predict or reproduce random values, compromising security features like password resets.
  • Remediation: Update PHP to a version with cryptographically secure random functions or apply security patches.
  • Vulnerability type: weak_cryptography
  • Vulnerability impact: information_disclosure
  • Requirements: Attacker must control or observe random output
  • Labels source: projectdiscovery
  • Severity: medium
  • Cvss score: 5.1
  • Cvss vector: CVSS:2.0/AV:N/AC:H/Au:N/C:P/I:P/A:P
  • Epss score: 0.03013
  • Epss percentile: 0.87762
  • Assignee: [email protected]
  • Published at: 2008-09-18T17:59:33Z
  • Age in days: 6641
  • Modified at: 2026-06-16T22:57:11Z
  • References total: 19
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2008-4107
  • Nvd status: modified
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
  • Not known: requirement type, hackerone

Cwe

IdName
CWE-189—

References

Same in every row:

  • Source: nvd
UrlTags
http://secunia.com/advisories/31737Vendor Advisory
http://secunia.com/advisories/31870Vendor Advisory
http://marc.info/?l=oss-security&m=122152830017099&w=2
http://osvdb.org/48700
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

Products

ProductAffectedPlatform boundSourcesUrl
php:php<= 5.2.5, = 5.2.4, = 5.2.3, = 5.2.2, = 5.2.1, = 5.2.0, = 5.1.6, = 5.1.5, = 5.1.4, = 5.1.2, = 5.1.0, = 5.0.5, = 5.0.4, = 5.0.1, = 5.0.0 beta1, = 5.0.0 beta2, = 5.0.0 beta4, = 5.0.0 rc1, <= 4.4.8, = 4.4.7, = 4.4.6, = 4.4.5, = 4.4.4, = 4.4.3, = 4.4.2, = 4.4.1, = 4.4.0, = 4.3.11, = 4.3.10, = 4.3.9, = 4.3.8, = 4.3.7, = 4.3.6, = 4.3.5, = 4.3.4, = 4.3.3, = 4.3.2, = 4.3.1, = 4.3.0, = 4.2.3, = 4.2.2, = 4.2.1, = 4.2.0, = 4.2, = 4.1.2, = 4.1.1, = 4.1.0, = 4.0.7, = 4.0.7 rc2, = 4.0.7 rc3, = 4.0.7 rc4, = 4.0.6, = 4.0.5, = 4.0.4 patch1, = 4.0.3 patch1, = 4.0.2, = 4.0.1, = 4.0.1 patch1, = 4.0.1 patch2, = 4.0.0, = 4.0 beta1, = 4.0 beta3, = 4.0 rc1, = 4.0 rc2nonvd/v1/products/php/php

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Remote: yes
  • Exposed hosts: 6175026
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports