CVE-2010-1128 Weak cryptography in n/a

Medium 6.4 Published Updated

Insufficient entropy in PHP's LCG allows attackers to predict session cookies, potentially leading to session hijacking and account takeover.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2010-1128?

CVE-2010-1128 is a medium-severity vulnerability in Php Php, published on 26 Mar 2010. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-310

Which versions are affected by CVE-2010-1128?

It affects 1 product.

Products include Php Php.

How do I fix CVE-2010-1128?

Upgrade to a fixed version.

Is CVE-2010-1128 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2010-1128 exists.

Public exploit code: 1 Exploit-DB entry.

All Php Php vulnerabilities

Sources

Also known as GHSA-59wc-4gch-hhw5.

Is CVE-2010-1128 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free