Live threats

All CVEs / Php

CVE-2008-2108Php

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
4.3%
probability of exploitation in 30 days · percentile 92
Auth required
No
Published
May 7, 2008
Updated
Jun 16, 2026
Category
Web application · Cross-platform
Weakness (CWE)
CWE-331
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Php.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
phpphp≥ 4.0.0 < 4.4.8
phpphp≥ 5.0.0 < 5.2.5
fedoraprojectfedora8
fedoraprojectfedora9
canonicalubuntu_linux6.06
canonicalubuntu_linux7.04
canonicalubuntu_linux7.10
canonicalubuntu_linux8.04
debiandebian_linux4.0

Official sources

References

Links published by the sources. Open them with care.