CVE-2010-1128

medium
Published 2010-03-26 ยท Modified 2026-04-29
CVSS v3
โ€”
CVSS v4 NEW
โ€”
not yet in upstream
VIR risk
7.4

Description

The Linear Congruential Generator (LCG) in PHP before 5.2.13 does not provide the expected entropy, which makes it easier for context-dependent attackers to guess values that were intended to be unpredictable, as demonstrated by session cookies generated by using the uniqid function.

Predictions

Exploit likelihood
20%
Patch ETA
โ€”

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

No mitigations published for this CVE yet.

The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ€” if you've already worked around this in production โ€” publish your fix to the community-verified tier.

โœš Propose a mitigation on Community โ†’ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here with source_tier=community-verified.

Exploits

Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.

Exploit-DB

EDB-33677 dos php verified
Rasmus ยท 2010-02-26

PHP 5.3.1 - LCG Entropy Security

Source code queued for fetch โ€” refresh in a moment.

Application impact

VendorProductVersionsFixed
php phpphp{"endIncluding":"5.2.12"}
php phpphp5.2.0
php phpphp5.2.1
php phpphp5.2.2
php phpphp5.2.3
php phpphp5.2.4
php phpphp5.2.5
php phpphp5.2.6
php phpphp5.2.7
php phpphp5.2.8
php phpphp5.2.9
php phpphp5.2.10
php phpphp5.2.11

References

CWEs

CWE-310

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.