CVE-2021-3689 Use of Predictable Algorithm in Random Number Generator in yiisoft/yii2

High 8.1 Published Updated

The Yii2 framework uses a predictable random number generator, potentially allowing attackers to bypass security mechanisms relying on randomness.

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

What is CVE-2021-3689?

CVE-2021-3689 is a high-severity vulnerability in yiisoft/yii2, published on 10 Aug 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

yii2 is vulnerable to Use of Predictable Algorithm in Random Number Generator

Weakness: CWE-330, CWE-1241

Which versions are affected by CVE-2021-3689?

2 open source packages ship an affected version, including yiisoft/yii2-dev. It affects 1 product.

PackageAffectedFixed in
yiisoft/yii2-dev PackagistAll versions2.0.43
yiisoft/yii2-dev PackagistAll versions2.0.43

Products include Yiiframework Yii.

How do I fix CVE-2021-3689?

Upgrade yiisoft/yii2-dev to 2.0.43 or later.

Is CVE-2021-3689 being exploited?

There is no known exploitation of CVE-2021-3689 in the wild and no public exploit code.

Sources

Also known as GHSA-hq3v-rg6f-6hx4.

Is CVE-2021-3689 in your software?

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

Check your SBOMs for free