---
title: "CVE-2010-1128\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2010-1128?format=md
keywords: index, follow
---

# CVE-2010-1128

Publication date 26 March 2010

Last updated 24 July 2024

---

Ubuntu priority

**Low**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

Toggle side navigation

## 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.

[Read the notes from the security team](https://ubuntu.com/security/CVE-2010-1128?format=md#notes)

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| php5 | 10.04 LTS lucid | Not affected |
| 9.10 karmic | Fixed 5.2.10.dfsg.1-2ubuntu6.5 |
| 9.04 jaunty | Fixed 5.2.6.dfsg.1-3ubuntu4.6 |
| 8.10 intrepid | Ignored end of life, was needed |
| 8.04 LTS hardy | Fixed 5.2.4-2ubuntu5.12 |
| 6.06 LTS dapper | Fixed 5.1.2-1ubuntu3.19 |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)
* [Patch details](https://ubuntu.com/security/CVE-2010-1128?format=md#patch-details)

## Notes

---

### [mdeslaur](https://launchpad.net/~mdeslaur)

also fixed in 5.3.2

### Patch details

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| php5 | * Upstream:   <http://svn.php.net/viewvc?view=revision&revision=293253> |

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-1128)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2010-1128)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2010-1128)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2010-1128)

### Related Ubuntu Security Notices (USN)

+ [USN-989-1](https://usn.ubuntu.com/USN-989-1)
+ PHP vulnerabilities
+ 20 September 2010

### Other references

* <http://www.php.net/ChangeLog-5.php>
* <http://www.php.net/releases/5_2_13.php>
* <http://www.php.net/releases/5_3_2.php>
* <http://samy.pl/phpwn/>
* <https://www.cve.org/CVERecord?id=CVE-2010-1128>
