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…
Noroxi assessment
Priority: Plan (action score 40/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 4.2% (FIRST EPSS); higher than 91.2% of all records.
- Anyone who can reach it over the internet can trigger it. No account or password is required. No user action is required. No special conditions are required; it is repeatable.
- Fixed version: php5 (Debian:4.0) 5.2.0+dfsg-8+etch15; php5 (Debian:5.0) 5.2.6.dfsg.1-1+lenny3; php (Red Hat:enterprise_linux:2.1::as) 0:4.1.2-2.20.
Add it to your regular patch cycle. Upgrade to php5 (Debian:4.0) 5.2.0+dfsg-8+etch15; php5 (Debian:5.0) 5.2.6.dfsg.1-1+lenny3; php (Red Hat:enterprise_linux:2.1::as) 0:4.1.2-2.20 or later.
Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it
Primary sources: NVD · CVE.org · FIRST EPSS
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.
- Published
- May 7, 2008
- Updated
- Jun 16, 2026
- EPSS
- 4.2% · 91th percentile
- CWE
- CWE-331
Report tools
Action score
40
Add it to your regular patch cycle.
- CVSS
- 39 / 40 · 9.8 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 1 / 30 · 4.2%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Is your version affected? Check itNoroxi analysis
What does it mean in your environment?
The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.
We use this product, ask for helpAffected systems
Is your version affected?
Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.
| Vendor | Product | CPE |
|---|---|---|
| php | php | cpe:2.3:a:php:php |
| fedoraproject | fedora | cpe:2.3:o:fedoraproject:fedora |
| canonical | ubuntu linux | cpe:2.3:o:canonical:ubuntu_linux |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
Using php? Add it to your stack and be the first to know about CVEs like this one. (PHP)
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- php php4.0.0 and later · before 4.4.8
- php php5.0.0 and later · before 5.2.5
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:4.0 | php5 | before 5.2.0+dfsg-8+etch15 | 5.2.0+dfsg-8+etch15 |
| Debian:5.0 | php5 | before 5.2.6.dfsg.1-1+lenny3 | 5.2.6.dfsg.1-1+lenny3 |
| Red Hat:enterprise_linux:2.1::as | php | before 0:4.1.2-2.20 | 0:4.1.2-2.20 |
| Red Hat:enterprise_linux:2.1::as | php-devel | before 0:4.1.2-2.20 | 0:4.1.2-2.20 |
| Red Hat:enterprise_linux:2.1::as | php-imap | before 0:4.1.2-2.20 | 0:4.1.2-2.20 |
| Red Hat:enterprise_linux:2.1::as | php-ldap | before 0:4.1.2-2.20 | 0:4.1.2-2.20 |
| Red Hat:enterprise_linux:2.1::as | php-manual | before 0:4.1.2-2.20 | 0:4.1.2-2.20 |
| Red Hat:enterprise_linux:2.1::as | php-mysql | before 0:4.1.2-2.20 | 0:4.1.2-2.20 |
| Red Hat:enterprise_linux:2.1::as | php-odbc | before 0:4.1.2-2.20 | 0:4.1.2-2.20 |
| Red Hat:enterprise_linux:2.1::as | php-pgsql | before 0:4.1.2-2.20 | 0:4.1.2-2.20 |
| Red Hat:enterprise_linux:3::as | php | before 0:4.3.2-48.ent | 0:4.3.2-48.ent |
| Red Hat:enterprise_linux:3::as | php-debuginfo | before 0:4.3.2-48.ent | 0:4.3.2-48.ent |
| Red Hat:enterprise_linux:3::as | php-devel | before 0:4.3.2-48.ent | 0:4.3.2-48.ent |
| Red Hat:enterprise_linux:3::as | php-imap | before 0:4.3.2-48.ent | 0:4.3.2-48.ent |
| Red Hat:enterprise_linux:3::as | php-ldap | before 0:4.3.2-48.ent | 0:4.3.2-48.ent |
| Red Hat:enterprise_linux:3::as | php-mysql | before 0:4.3.2-48.ent | 0:4.3.2-48.ent |
| Red Hat:enterprise_linux:3::as | php-odbc | before 0:4.3.2-48.ent | 0:4.3.2-48.ent |
| Red Hat:enterprise_linux:3::as | php-pgsql | before 0:4.3.2-48.ent | 0:4.3.2-48.ent |
| Red Hat:enterprise_linux:4::as | php | before 0:4.3.9-3.22.12 | 0:4.3.9-3.22.12 |
| Red Hat:enterprise_linux:4::as | php-debuginfo | before 0:4.3.9-3.22.12 | 0:4.3.9-3.22.12 |
| Red Hat:enterprise_linux:4::as | php-devel | before 0:4.3.9-3.22.12 | 0:4.3.9-3.22.12 |
| Red Hat:enterprise_linux:4::as | php-domxml | before 0:4.3.9-3.22.12 | 0:4.3.9-3.22.12 |
| Red Hat:enterprise_linux:4::as | php-gd | before 0:4.3.9-3.22.12 | 0:4.3.9-3.22.12 |
| Red Hat:enterprise_linux:4::as | php-imap | before 0:4.3.9-3.22.12 | 0:4.3.9-3.22.12 |
+96
Same product
php: all recordsOther highest-scoring records for the same primary product.
- CVE-2024-4577Argument Injection in PHP-CGIKEV99Now
- CVE-2019-11043Underflow in PHP-FPM can lead to RCEKEV99Now
- CVE-2012-1823sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not properly handle…KEV99Now
Published before and after this one in the same product
- ← EarlierCVE-2008-2051May 5, 2008 · The escapeshellcmd API function in PHP before 5.2.6 has unknown impact and context-dependent attack vectors related to "incomplete…41Plan
- ← EarlierCVE-2008-2107May 7, 2008 · The GENERATE_SEED macro in PHP 4.x before 4.4.8 and 5.x before 5.2.5, when running on 32-bit systems, performs a multiplication using…31Monitor
- Later →CVE-2008-2665Jun 19, 2008 · Directory traversal vulnerability in the posix_access function in PHP 5.2.6 and earlier allows remote attackers to bypass safe_mode…21Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:php5 | 5.2.0+dfsg-8+etch15 · Debian:4.0 | Package registry (OSV) |
| red hat:httpd | 0:2.2.8-1.el5s2 · Red Hat:rhel_application_stack:2 | Package registry (OSV) |
| red hat:httpd-debuginfo | 0:2.2.8-1.el5s2 · Red Hat:rhel_application_stack:2 | Package registry (OSV) |
| red hat:httpd-devel | 0:2.2.8-1.el5s2 · Red Hat:rhel_application_stack:2 | Package registry (OSV) |
| red hat:httpd-manual | 0:2.2.8-1.el5s2 · Red Hat:rhel_application_stack:2 | Package registry (OSV) |
| red hat:mod_jk | 0:1.2.26-1.el5s2 · Red Hat:rhel_application_stack:2 | Package registry (OSV) |
| red hat:mod_jk-ap20 | 0:1.2.26-1.el5s2 · Red Hat:rhel_application_stack:2 | Package registry (OSV) |
| red hat:mod_jk-debuginfo | 0:1.2.26-1.el5s2 · Red Hat:rhel_application_stack:2 | Package registry (OSV) |
| red hat:mod_perl | 0:2.0.4-3.el5s2 · Red Hat:rhel_application_stack:2 | Package registry (OSV) |
| red hat:mod_perl-debuginfo | 0:2.0.4-3.el5s2 · Red Hat:rhel_application_stack:2 | Package registry (OSV) |
| red hat:mod_perl-devel | 0:2.0.4-3.el5s2 · Red Hat:rhel_application_stack:2 | Package registry (OSV) |
| red hat:mod_ssl | 1:2.2.8-1.el5s2 · Red Hat:rhel_application_stack:2 | Package registry (OSV) |
| red hat:mysql | 0:5.0.50sp1a-2.el5s2 · Red Hat:rhel_application_stack:2 | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
No dated events beyond publication.
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- Anyone who can reach it over the internet can trigger it.
- No account or password is required.
- No user action is required.
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- high · data can be read
- Integrity
- high · data or configuration can be modified
- Availability
- high · the service can be disrupted
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality impact
- High
- Integrity impact
- High
- Availability impact
- High
Weakness class (CWE)
CWE-331 · Insufficient EntropyCVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
ATT&CK techniques
—
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (19 more)Show less
- secunia.com/advisories/30828
- secunia.com/advisories/31119
- secunia.com/advisories/31124
- secunia.com/advisories/31200
- secunia.com/advisories/32746
- secunia.com/advisories/35003
- security.gentoo.org/glsa/glsa-200811-05.xml
- securityreason.com/securityalert/3859
- www.debian.org/security/2009/dsa-1789
- www.mandriva.com/security/advisories?name=MDVSA-2008:125
- www.mandriva.com/security/advisories?name=MDVSA-2008:126
- www.mandriva.com/security/advisories?name=MDVSA-2008:127
- www.mandriva.com/security/advisories?name=MDVSA-2008:128
- www.mandriva.com/security/advisories?name=MDVSA-2008:129
- www.mandriva.com/security/advisories?name=MDVSA-2008:130
- www.redhat.com/support/errata/RHSA-2008-0505.html
- www.redhat.com/support/errata/RHSA-2008-0544.html
- www.redhat.com/support/errata/RHSA-2008-0545.html
- www.redhat.com/support/errata/RHSA-2008-0546.html
Vendor advisories and official records. Exploit/PoC links are deliberately left out.