CVE-2021-3689
HIGH 7.5CVSS 3.1Use of Insufficiently Random Values in yiisoft/yii2-dev
yii2 is vulnerable to Use of Predictable Algorithm in Random Number Generator
- Published
- 10 Aug 2021
- Last modified
- 17 Jun 2026
- Assigned by
- security@huntr.dev
- NVD status
- Modified
- Weakness
- CWE-1241CWE-330
- Also known as
- GHSA-hq3v-rg6f-6hx4
- Sources
- NVDJSONOSV GHSA-hq3v-rg6f-6hx4JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
| NVD | security@huntr.dev (Secondary) | CVSS 3.0 | HIGH 8.1 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:P/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | yiiframework | yiicpe:2.3:a:yiiframework:yii:*:*:*:*:*:*:*:* |
>= 2.0.0, < 2.0.43 | 2.0.43 |
| OSV | Packagist | yiisoft/yii2-dev | < 2.0.43 | 2.0.43 |
References
- https://github.com/yiisoft/yii2/commit/13f27e4d920a05d53236139e8b07007acd046a46 · Patch, Third Party Advisory, WEB
- https://huntr.dev/bounties/50aad1d4-eb00-4573-b8a4-dbe38e2c229f · Exploit, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-3689 · ADVISORY
- https://github.com/yiisoft/yii2 · PACKAGE
History
- 25 Nov 2026 20:33 UTC · NVD: first stored (published 10 Aug 2021)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 1 Sep 2021)