CVE-2021-3689
Use of Predictable Algorithm in Random Number Generator in yiisoft/yii2
No known exploitation. EPSS puts it in the 80th percentile. Fixed in 2.0.43.
What to do
Find your product and version, then upgrade to the build on the right.
- Yiisoft/yii2Affected: ≥ unspecified, ≤ 2.0.42.1Upgrade to: after 2.0.42.1Stated by: CVE record
- Packagist yiisoft/yii2-devAffected: < 2.0.43Upgrade to: 2.0.43Stated by: GitHub advisory
- Yiiframework YiiAffected: ≥ 2.0.0, < 2.0.43Upgrade to: 2.0.43Stated by: NVD
Versions as the sources state them. Full version matrix after sign-in
What it is
From the CVE record
yii2 is vulnerable to Use of Predictable Algorithm in Random Number Generator
In plain language
No plain-language summary for this CVE yet.
Exploitation
Where each signal puts this CVE on the scale from published to confirmed exploited.
- CISA KEV
Not in the catalog. CISA has not confirmed exploitation.
- Public exploits
No public exploit or proof of concept found in the sources we track.
- EPSS
1.9% chance of exploitation activity in the next 30 days, which ranks it in the 80th percentile of scored CVEs.
Exploit Prediction Scoring System, FIRST.org. A probability, not a confirmation.
Lifecycle
6 events over 1669 days, from the signal feeds we watch.
- Nuclei check added
- Patch availablerecord updated
- Publishedweakness classified, att&ck mapped
Affected products
Technical detail
CVSS 3.1 vector
Open in the CVSS calculatorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Scored 7.5 by NVD.
How it is reached
- Attack Vector NetworkExploitable remotely over the network without any special conditions
- Attack Complexity LowNo special conditions — the attack can be reliably reproduced
- Privileges Required NoneNo authentication required — anyone can exploit this
- User Interaction NoneNo user interaction needed — fully automated exploitation
Scope
- Scope UnchangedImpact is limited to the vulnerable component itself
Impact if exploited
- Confidentiality NoneNo confidentiality impact
- Integrity HighTotal loss of integrity — attacker can modify any data in the component
- Availability NoneNo availability impact
Weaknesses
ATT&CK techniques
Mapped from the weaknesses above (CWE to ATT&CK), not observed in attacks.
- Credential AccessT1110Brute Forcemedium confidence
Sources
References in the record
- huntr.dev/bounties/50aad1d4-eb00-4573-b8a4-dbe38e2c229f
- github.com/yiisoft/yii2/commit/13f27e4d920a05d53236139e8b07007acd046a46
- nvd.nist.gov/vuln/detail/CVE-2021-3689
And 1 more reference. See all after sign-in
Watch the software you run.
My Stack ranks new CVEs for your products by real-world exploitation, so the next serious one reaches you without reading every advisory.
We'll flag the next CVE, public exploit or patch for Yiisoft/yii2, not every advisory.
A free account adds
- The full version matrix and every affected product
- Exploit links, proofs of concept and Metasploit modules
- Email alerts for the products you watch
- The same data over REST API, MCP and CLI