CVE-2008-4107
What it is
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.
At a glance
- Exploitability
- Can be exploited over the network without logging in. Limited direct impact.
- Exploit odds
- 3.0% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 3.0% in the next 30 days (EPSS).
- Severity: 5.1 MEDIUM (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 3.0% · EPSS, next 30 days
- Weakness
- CWE-189
- Record status
- Modified
Affected
- PHP ≤ 4.4.8
- PHP 4.0
- PHP 4.0.0
- PHP 4.0.1
- PHP 4.0.2
- PHP 4.0.3
- PHP 4.0.4
- PHP 4.0.5
Attack profile CVSS 2.0 · 5.1
- Attack vector
- Network
- Complexity
- High
- Authentication
- None
- Confidentiality
- Partial
- Integrity
- Partial
- Availability
- Partial
Raw vector
AV:N/AC:H/Au:N/C:P/I:P/A:P
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2008-4107.md and follow it. Check whether this project is affected by CVE-2008-4107. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- http://secunia.com/advisories/31737
- http://secunia.com/advisories/31870
- http://secunia.com/advisories/31737
- http://secunia.com/advisories/31870
References
- 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
- 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