CVE-2008-2108
CRITICAL 9.8CVSS 3.1The 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.
- Published
- 7 May 2008
- Last modified
- 16 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-331
- Sources
- NVDJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | php | phpcpe:2.3:a:php:php:*:*:*:*:*:*:*:* |
>= 4.0.0, < 4.4.8 | 4.4.8 |
| NVD | php | phpcpe:2.3:a:php:php:*:*:*:*:*:*:*:* |
>= 5.0.0, < 5.2.5 | 5.2.5 |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:8:*:*:*:*:*:*:* |
= 8 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:9:*:*:*:*:*:*:* |
= 9 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:6.06:*:*:*:*:*:*:* |
= 6.06 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:7.04:*:*:*:*:*:*:* |
= 7.04 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:7.10:*:*:*:*:*:*:* |
= 7.10 | |
| NVD | canonical | ubuntu_linuxcpe:2.3:o:canonical:ubuntu_linux:8.04:*:*:*:-:*:*:* |
= 8.04 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:4.0:*:*:*:*:*:*:* |
= 4.0 |
References
- http://archives.neohapsis.com/archives/fulldisclosure/2008-05/0103.html · Broken Link, Exploit
- http://secunia.com/advisories/30757 · Broken Link
- http://secunia.com/advisories/30828 · Broken Link
- http://secunia.com/advisories/31119 · Broken Link
- http://secunia.com/advisories/31124 · Broken Link
- http://secunia.com/advisories/31200 · Broken Link
- http://secunia.com/advisories/32746 · Broken Link
- http://secunia.com/advisories/35003 · Broken Link
- http://security.gentoo.org/glsa/glsa-200811-05.xml · Third Party Advisory
- http://securityreason.com/securityalert/3859 · Mailing List
- http://www.debian.org/security/2009/dsa-1789 · Mailing List
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:125 · Broken Link
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:126 · Broken Link
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:127 · Broken Link
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:128 · Broken Link
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:129 · Broken Link
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:130 · Broken Link
- http://www.redhat.com/support/errata/RHSA-2008-0505.html · Broken Link
- http://www.redhat.com/support/errata/RHSA-2008-0544.html · Broken Link
- http://www.redhat.com/support/errata/RHSA-2008-0545.html · Broken Link
- http://www.redhat.com/support/errata/RHSA-2008-0546.html · Broken Link
- http://www.redhat.com/support/errata/RHSA-2008-0582.html · Broken Link
- http://www.securityfocus.com/archive/1/491683/100/0/threaded · Broken Link, Third Party Advisory, VDB Entry
- http://www.sektioneins.de/advisories/SE-2008-02.txt · Broken Link, Exploit
- http://www.ubuntu.com/usn/usn-628-1 · Third Party Advisory
- https://exchange.xforce.ibmcloud.com/vulnerabilities/42226 · Third Party Advisory, VDB Entry
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10844 · Broken Link
- https://www.redhat.com/archives/fedora-package-announce/2008-June/msg00773.html · Mailing List
- https://www.redhat.com/archives/fedora-package-announce/2008-June/msg00779.html · Mailing List
History
- 25 Nov 2026 20:14 UTC · NVD: first stored (published 7 May 2008)