Back
CVE-2008-2108
The GENERATE_SEED macro in PHP 4.x before 4.4.8 and 5.x before 5.2.5, when running on 64-bit systems, performs a multiplication that…
Critical9.8EPSS 4.3%
- Published
- Updated
- Reserved
- Assigned by
- mitre
Description
The GENERATE_SEED macro in PHP 4.x before 4.4.8 and 5.x before 5.2.5, when running on 64-bit systems, performs a multiplication that generates a portion of zero bits during conversion due to insufficient precision, which produces 24 bits of entropy and simplifies brute force attacks against protection mechanisms that use the rand and mt_rand functions.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | Critical9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 4.3% · top 8.9% of all CVEs (3 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.8.
Weakness
Affected products
n/a
- affected n/a
References (29)
- FEDORA-2008-3606 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- 32746 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- 20080506 Advisory SE-2008-02: PHP GENERATE_SEED() Weak Random Number Seed Vulnerability (opens in a new tab)mailing-listx_refsource_FULLDISCx_transferred
- GLSA-200811-05 (opens in a new tab)vendor-advisoryx_refsource_GENTOOx_transferred
- RHSA-2008:0546 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- FEDORA-2008-3864 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- 30828 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- MDVSA-2008:128 (opens in a new tab)vendor-advisoryx_refsource_MANDRIVAx_transferred
- 3859 (opens in a new tab)third-party-advisoryx_refsource_SREASONx_transferred
- RHSA-2008:0582 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- USN-628-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- RHSA-2008:0545 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- php-generateseed-weak-security(42226) (opens in a new tab)vdb-entryx_refsource_XFx_transferred
- 31124 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- 31119 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- MDVSA-2008:129 (opens in a new tab)vendor-advisoryx_refsource_MANDRIVAx_transferred
- 31200 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- 30757 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- RHSA-2008:0544 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- 35003 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- MDVSA-2008:125 (opens in a new tab)vendor-advisoryx_refsource_MANDRIVAx_transferred
- RHSA-2008:0505 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- oval:org.mitre.oval:def:10844 (opens in a new tab)vdb-entrysignaturex_refsource_OVALx_transferred
- MDVSA-2008:130 (opens in a new tab)vendor-advisoryx_refsource_MANDRIVAx_transferred
- MDVSA-2008:126 (opens in a new tab)vendor-advisoryx_refsource_MANDRIVAx_transferred
- 20080506 Advisory SE-2008-02: PHP GENERATE_SEED() Weak Random Number Seed Vulnerability (opens in a new tab)mailing-listx_refsource_BUGTRAQx_transferred
- MDVSA-2008:127 (opens in a new tab)vendor-advisoryx_refsource_MANDRIVAx_transferred
- http://www.sektioneins.de/advisories/SE-2008-02.txt (opens in a new tab)x_refsource_MISCx_transferred
- DSA-1789 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Record last updated .