cve.bz

CVE-2008-2108 Insufficient Entropy

9.8 criticalExploit referenceEPSS 4.3%

Critical (9.8). EPSS 4.3% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
4.3% (unchanged from 4.3% a week ago; 4.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 91st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-331 Insufficient Entropy
OWASP Top 10
A04:2025 Cryptographic Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2008-2108 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2008-2108?via=ask-ai-copy and https://cve.bz/cve/CVE-2008-2108?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2008-2108 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
php:phpfrom 4.0.0 before 4.4.8
php:phpfrom 5.0.0 before 5.2.5
fedoraproject:fedora8
fedoraproject:fedora9
canonical:ubuntu_linux6.06
canonical:ubuntu_linux7.04
canonical:ubuntu_linux7.10
canonical:ubuntu_linux8.04
debian:debian_linux4.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian4.0php55.2.0+dfsg-8+etch15DSA-1789-1
Debian5.0php55.2.6.dfsg.1-1+lenny3DSA-1789-1
Red Hatenterprise_linux:2.1::as, enterprise_linux:2.1::aw, enterprise_linux:2.1::es and 1 morephp, php-imap, php-ldap and 5 more0:4.1.2-2.20RHSA-2008:0546
Red Hatenterprise_linux:3::as, enterprise_linux:3::desktop, enterprise_linux:3::es and 1 morephp, php-imap, php-ldap and 5 more0:4.3.2-48.entRHSA-2008:0544
Red Hatenterprise_linux:4::as, enterprise_linux:4::desktop, enterprise_linux:4::es and 1 morephp, php-gd, php-imap and 12 more0:4.3.9-3.22.12RHSA-2008:0545
Red Hatenterprise_linux:5::client_workstation, enterprise_linux:5::serverphp, php-gd, php-cli and 17 more0:5.1.6-20.el5_2.1RHSA-2008:0544
Red Hatrhel_application_stack:1php, php-gd, php-cli and 17 more0:5.1.6-3.el4s1.10RHSA-2008:0582
Red Hatrhel_application_stack:2httpd, httpd-devel, httpd-manual and 1 more0:2.2.8-1.el5s2RHSA-2008:0505
Red Hatrhel_application_stack:2mod_jk, mod_jk-ap20, mod_jk-debuginfo0:1.2.26-1.el5s2RHSA-2008:0505
Red Hatrhel_application_stack:2mod_perl, mod_perl-devel, mod_perl-debuginfo0:2.0.4-3.el5s2RHSA-2008:0505
Red Hatrhel_application_stack:2mod_ssl1:2.2.8-1.el5s2RHSA-2008:0505
Red Hatrhel_application_stack:2mysql, mysql-libs, mysql-test and 5 more0:5.0.50sp1a-2.el5s2RHSA-2008:0505
Red Hatrhel_application_stack:2mysql-connector-odbc, mysql-connector-odbc-debuginfo0:3.51.24r1071-1.el5s2RHSA-2008:0505
Red Hatrhel_application_stack:2mysql-jdbc0:5.0.8-1jpp.1.el5s2RHSA-2008:0505
8 more for Red Hat in the JSON and on Red Hat's page.

From the distributions' data via OSV.dev: the Debian Security Tracker; Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Red Hat.

Red Hat

Red Hat rates this Low.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 2.1php-0:4.1.2-2.20Fixed 2008-07-16RHSA-2008:0546
Red Hat Enterprise Linux 3php-0:4.3.2-48.entFixed 2008-07-16RHSA-2008:0544
Red Hat Enterprise Linux 4php-0:4.3.9-3.22.12Fixed 2008-07-16RHSA-2008:0545
Red Hat Enterprise Linux 5php-0:5.1.6-20.el5_2.1Fixed 2008-07-16RHSA-2008:0544
Red Hat Web Application Stack for RHEL 4php-0:5.1.6-3.el4s1.10Fixed 2008-07-22RHSA-2008:0582

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2008-2108.

Attack patterns (CAPEC)

  • CAPEC-59 Session Credential Falsification through Prediction Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON