CVE-2008-2108: Canonical Ubuntu Linux

Critical severity, CVSS 9.8. EPSS: 4.3% chance of exploitation in the next 30 days.

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.

Affected products

  • Canonical Ubuntu Linux: version 6.06 only; version 7.04 only; version 7.10 only; version 8.04 only
  • Debian Debian Linux: version 4.0 only
  • Fedoraproject Fedora: version 8 only; version 9 only
  • PHP PHP: from 4.0.0, before 4.4.8 (fixed in 4.4.8); from 5.0.0, before 5.2.5 (fixed in 5.2.5)

Published 2008-05-07. Last modified 2026-06-16.