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 gene…

CVE-2008-2108 affects 11 listed versions of PHP in the Dawnsentry catalogue.

9.8CVSS critical
None knownexploitation
4%EPSS (next 30 days)
7 May 2008published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

PHP

11 of 250 listed versions are affected. Fixed in 5.2.5. The newest release, 8.6.0, is not affected.

5.2.4 5.2.3 5.1.6 5.1.5 5.1.4 5.1.3 5.1.2 5.1.1 5.1.0 5.0.5 5.0.4

What it is

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (NVD)

Published by MITRE on 7 May 2008. Last changed 16 June 2026.

Sources

Check one version you run: look CVE-2008-2108 up, or pick a product and version in the quick lookup.

Updated 1 December 2026.