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
Debian Linux
Ubuntu
php5-cli (Ubuntu package)
php5-cgi (Ubuntu package)
libapache2-mod-php5 (Ubuntu package)
php5 (Debian package)
dev-lang/php

How to mitigate CVE-2010-1128

Install update from vendor's website.

PHP - update to 5.2.12
php5-cli (Ubuntu package) - addressed in versions 5.1.2-1ubuntu3.19, 5.2.4-2ubuntu5.12, 5.2.6.dfsg.1-3ubuntu4.6, 5.2.10.dfsg.1-2ubuntu6.5, 5.3.2-1ubuntu4.5
php5-cgi (Ubuntu package) - addressed in versions 5.1.2-1ubuntu3.19, 5.2.4-2ubuntu5.12, 5.2.6.dfsg.1-3ubuntu4.6, 5.2.10.dfsg.1-2ubuntu6.5, 5.3.2-1ubuntu4.5
libapache2-mod-php5 (Ubuntu package) - addressed in versions 5.1.2-1ubuntu3.19, 5.2.4-2ubuntu5.12, 5.2.6.dfsg.1-3ubuntu4.6, 5.2.10.dfsg.1-2ubuntu6.5, 5.3.2-1ubuntu4.5
php5 (Debian package) - addressed in versions 5.2.6.dfsg.1-1+lenny10, 5.3.3-7+squeeze1
dev-lang/php - update to 5.3.8

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins