Cryptographic issues in PHP - CVE-2010-1128

 

Cryptographic issues in PHP - CVE-2010-1128

Published: December 10, 2010 / Updated: June 12, 2025


Vulnerability identifier: #VU110309
CSH Severity: Medium
CVSS v4: 6.9 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2010-1128
CWE-ID: CWE-310
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote non-authenticated attacker to read and manipulate data.

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.


Affected software

PHP
Gentoo Linux
dev-lang/php

How to mitigate CVE-2010-1128

Install update from vendor's website.

PHP - update to 5.2.12
dev-lang/php - update to 5.3.8

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins