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 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.
What to do
Fixed builds are available from Red Hat: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Red Hat Enterprise Linux 5 | php | Fixed | 0:5.1.6-20.el5_2.1 | RHSA-2008:0544 |
| Red Hat Enterprise Linux 5 | php-bcmath | Fixed | 0:5.1.6-20.el5_2.1 | RHSA-2008:0544 |
| Red Hat Enterprise Linux 5 | php-cli | Fixed | 0:5.1.6-20.el5_2.1 | RHSA-2008:0544 |
| Red Hat Enterprise Linux 5 | php-common | Fixed | 0:5.1.6-20.el5_2.1 | RHSA-2008:0544 |
| Red Hat Enterprise Linux 5 | php-dba | Fixed | 0:5.1.6-20.el5_2.1 | RHSA-2008:0544 |
| Red Hat Enterprise Linux 5 | php-devel | Fixed | 0:5.1.6-20.el5_2.1 | RHSA-2008:0544 |
| Red Hat Enterprise Linux 5 | php-gd | Fixed | 0:5.1.6-20.el5_2.1 | RHSA-2008:0544 |
| Red Hat Enterprise Linux 5 | php-imap | Fixed | 0:5.1.6-20.el5_2.1 | RHSA-2008:0544 |
| Red Hat Enterprise Linux 5 | php-ldap | Fixed | 0:5.1.6-20.el5_2.1 | RHSA-2008:0544 |
| Red Hat Enterprise Linux 5 | php-mbstring | Fixed | 0:5.1.6-20.el5_2.1 | RHSA-2008:0544 |
| Red Hat Enterprise Linux 5 | php-mysql | Fixed | 0:5.1.6-20.el5_2.1 | RHSA-2008:0544 |
| Red Hat Enterprise Linux 5 | php-ncurses | Fixed | 0:5.1.6-20.el5_2.1 | RHSA-2008:0544 |
| Red Hat Enterprise Linux 5 | php-odbc | Fixed | 0:5.1.6-20.el5_2.1 | RHSA-2008:0544 |
| Red Hat Enterprise Linux 5 | php-pdo | Fixed | 0:5.1.6-20.el5_2.1 | RHSA-2008:0544 |
| Red Hat Enterprise Linux 5 | php-pgsql | Fixed | 0:5.1.6-20.el5_2.1 | RHSA-2008:0544 |
| Red Hat Enterprise Linux 5 | php-snmp | Fixed | 0:5.1.6-20.el5_2.1 | RHSA-2008:0544 |
| Red Hat Enterprise Linux 5 | php-soap | Fixed | 0:5.1.6-20.el5_2.1 | RHSA-2008:0544 |
| Red Hat Enterprise Linux 5 | php-xml | Fixed | 0:5.1.6-20.el5_2.1 | RHSA-2008:0544 |
| Red Hat Enterprise Linux 5 | php-xmlrpc | Fixed | 0:5.1.6-20.el5_2.1 | RHSA-2008:0544 |
| Red Hat Enterprise Linux 4 | php | Fixed | 0:4.3.9-3.22.12 | RHSA-2008:0545 |
| Red Hat Enterprise Linux 4 | php-devel | Fixed | 0:4.3.9-3.22.12 | RHSA-2008:0545 |
| Red Hat Enterprise Linux 4 | php-domxml | Fixed | 0:4.3.9-3.22.12 | RHSA-2008:0545 |
| Red Hat Enterprise Linux 4 | php-gd | Fixed | 0:4.3.9-3.22.12 | RHSA-2008:0545 |
| Red Hat Enterprise Linux 4 | php-imap | Fixed | 0:4.3.9-3.22.12 | RHSA-2008:0545 |
| Red Hat Enterprise Linux 4 | php-ldap | Fixed | 0:4.3.9-3.22.12 | RHSA-2008:0545 |
| Red Hat Enterprise Linux 4 | php-mbstring | Fixed | 0:4.3.9-3.22.12 | RHSA-2008:0545 |
| Red Hat Enterprise Linux 4 | php-mysql | Fixed | 0:4.3.9-3.22.12 | RHSA-2008:0545 |
| Red Hat Enterprise Linux 4 | php-ncurses | Fixed | 0:4.3.9-3.22.12 | RHSA-2008:0545 |
| Red Hat Enterprise Linux 4 | php-odbc | Fixed | 0:4.3.9-3.22.12 | RHSA-2008:0545 |
| Red Hat Enterprise Linux 4 | php-pear | Fixed | 0:4.3.9-3.22.12 | RHSA-2008:0545 |
| Red Hat Enterprise Linux 4 | php-pgsql | Fixed | 0:4.3.9-3.22.12 | RHSA-2008:0545 |
| Red Hat Enterprise Linux 4 | php-snmp | Fixed | 0:4.3.9-3.22.12 | RHSA-2008:0545 |
| Red Hat Enterprise Linux 4 | php-xmlrpc | Fixed | 0:4.3.9-3.22.12 | RHSA-2008:0545 |
| Red Hat Enterprise Linux 3 | php | Fixed | 0:4.3.2-48.ent | RHSA-2008:0544 |
| Red Hat Enterprise Linux 3 | php-devel | Fixed | 0:4.3.2-48.ent | RHSA-2008:0544 |
| Red Hat Enterprise Linux 3 | php-imap | Fixed | 0:4.3.2-48.ent | RHSA-2008:0544 |
| Red Hat Enterprise Linux 3 | php-ldap | Fixed | 0:4.3.2-48.ent | RHSA-2008:0544 |
| Red Hat Enterprise Linux 3 | php-mysql | Fixed | 0:4.3.2-48.ent | RHSA-2008:0544 |
| Red Hat Enterprise Linux 3 | php-odbc | Fixed | 0:4.3.2-48.ent | RHSA-2008:0544 |
| Red Hat Enterprise Linux 3 | php-pgsql | Fixed | 0:4.3.2-48.ent | RHSA-2008:0544 |
| Red Hat Enterprise Linux 2 | php | Fixed | 0:4.1.2-2.20 | RHSA-2008:0546 |
| Red Hat Enterprise Linux 2 | php-devel | Fixed | 0:4.1.2-2.20 | RHSA-2008:0546 |
| Red Hat Enterprise Linux 2 | php-imap | Fixed | 0:4.1.2-2.20 | RHSA-2008:0546 |
| Red Hat Enterprise Linux 2 | php-ldap | Fixed | 0:4.1.2-2.20 | RHSA-2008:0546 |
| Red Hat Enterprise Linux 2 | php-manual | Fixed | 0:4.1.2-2.20 | RHSA-2008:0546 |
| Red Hat Enterprise Linux 2 | php-mysql | Fixed | 0:4.1.2-2.20 | RHSA-2008:0546 |
| Red Hat Enterprise Linux 2 | php-odbc | Fixed | 0:4.1.2-2.20 | RHSA-2008:0546 |
| Red Hat Enterprise Linux 2 | php-pgsql | Fixed | 0:4.1.2-2.20 | RHSA-2008:0546 |
What the vendor says
As published in the CVE record by mitre, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- https://www.redhat.com/archives/fedora-package-announce/2008-June/msg00779.html (vendor-advisory)
- http://security.gentoo.org/glsa/glsa-200811-05.xml (vendor-advisory)
- http://www.redhat.com/support/errata/RHSA-2008-0546.html (vendor-advisory)
- https://www.redhat.com/archives/fedora-package-announce/2008-June/msg00773.html (vendor-advisory)
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:128 (vendor-advisory)
- http://www.redhat.com/support/errata/RHSA-2008-0582.html (vendor-advisory)
References
- https://www.redhat.com/archives/fedora-package-announce/2008-June/msg00779.html
- http://secunia.com/advisories/32746
- http://archives.neohapsis.com/archives/fulldisclosure/2008-05/0103.html
- http://security.gentoo.org/glsa/glsa-200811-05.xml
- http://www.redhat.com/support/errata/RHSA-2008-0546.html
- https://www.redhat.com/archives/fedora-package-announce/2008-June/msg00773.html
- http://secunia.com/advisories/30828
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:128
- http://securityreason.com/securityalert/3859
- http://www.redhat.com/support/errata/RHSA-2008-0582.html
- http://www.ubuntu.com/usn/usn-628-1
- http://www.redhat.com/support/errata/RHSA-2008-0545.html
- https://exchange.xforce.ibmcloud.com/vulnerabilities/42226
- http://secunia.com/advisories/31124
- http://secunia.com/advisories/31119
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.