Skip to content

The GENERATE_SEED macro in PHP 4.x before 4.4.8 and 5.x...

High severity Unreviewed Published May 1, 2022 to the GitHub Advisory Database • Updated Feb 23, 2024

Package

No package listedSuggest a package

Affected versions

Unknown

Patched versions

Unknown

Description

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.

References

Published by the National Vulnerability Database May 7, 2008
Published to the GitHub Advisory Database May 1, 2022
Last updated Feb 23, 2024

Severity

High

EPSS score

0.358%
(72nd percentile)

Weaknesses

CVE ID

CVE-2008-2108

GHSA ID

GHSA-ch9c-f347-cqvw

Source code

No known source code

Dependabot alerts are not supported on this advisory because it does not have a package from a supported ecosystem with an affected and fixed version.

Learn more about GitHub language support

Loading Checking history
See something to contribute? Suggest improvements for this vulnerability.