{"id":"CVE-2021-3689","aliases":["EUVD-2021-2074","GHSA-hq3v-rg6f-6hx4"],"status":"published","title":"Use of Predictable Algorithm in Random Number Generator in yiisoft/yii2","description":"yii2 is vulnerable to Use of Predictable Algorithm in Random Number Generator","severity":{"version":"3.0","score":8.1,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-11","score":0.01902,"percentile":0.79971,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-1241","CWE-330"],"published":"2021-08-10T10:21:30Z","modified":"2026-10-20T10:54:48Z","fixes":[{"ecosystem":"Packagist","package":"yiisoft/yii2-dev","fixed_in":["2.0.43"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"yiisoft/yii2-dev","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.43"}]}]},{"source":"osv","ecosystem":"Packagist","package":"yiisoft/yii2-dev","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.43"}]}],"versions":["2.0.0","2.0.0-alpha","2.0.0-beta","2.0.0-rc","2.0.1","2.0.10","2.0.11","2.0.11.1","2.0.11.2","2.0.12","2.0.12.1","2.0.12.2","2.0.13","2.0.13.1","2.0.13.2","2.0.13.3","2.0.14","2.0.14.1","2.0.14.2","2.0.15","2.0.15.1","2.0.16","2.0.16.1","2.0.17","2.0.18","2.0.19","2.0.2","2.0.20","2.0.21","2.0.22","2.0.23","2.0.24","2.0.25","2.0.26","2.0.27","2.0.28","2.0.29","2.0.3","2.0.30","2.0.31","2.0.32","2.0.33","2.0.34","2.0.35","2.0.36","2.0.37","2.0.38","2.0.39","2.0.39.1","2.0.39.2","2.0.39.3","2.0.4","2.0.40","2.0.41","2.0.41.1","2.0.42","2.0.42.1","2.0.5","2.0.6","2.0.7","2.0.8","2.0.9"]}],"products":[{"vendor":"yiiframework","product":"yii"},{"vendor":"yiisoft","product":"yiisoft/yii2"}],"references":[{"url":"https://huntr.dev/bounties/50aad1d4-eb00-4573-b8a4-dbe38e2c229f","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Third Party Advisory","evidence","web"]},{"url":"https://github.com/yiisoft/yii2/commit/13f27e4d920a05d53236139e8b07007acd046a46","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3689","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-hq3v-rg6f-6hx4"},{"url":"https://github.com/yiisoft/yii2","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2021-3689","title":"Use of Predictable Algorithm in Random Number Generator in yiisoft/yii2","description":"yii2 is vulnerable to Use of Predictable Algorithm in Random Number Generator","status":"published","published":"2021-08-10T10:21:30Z","modified":"2024-08-03T17:01:07.696Z","cvss":[{"version":"3.0","score":8.1,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"cna"}],"cwes":["CWE-1241"],"updated_at":"2026-11-02T14:33:04.360272Z"}],"euvd":[{"id":"EUVD-2021-2074","description":"yii2 is vulnerable to Use of Predictable Algorithm in Random Number Generator","status":"published","published":"2021-08-10T10:21:30Z","modified":"2024-08-03T17:01:07Z","cvss":[{"version":"3.0","score":8.1,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-03T03:25:12.535968Z"}],"ghsa":[{"id":"GHSA-hq3v-rg6f-6hx4","title":"Use of Insufficiently Random Values in yiisoft/yii2-dev","description":"yii2 is vulnerable to Use of Predictable Algorithm in Random Number Generator","status":"published","published":"2021-09-01T18:35:34Z","modified":"2023-02-01T05:06:24Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"cwes":["CWE-330"],"updated_at":"2026-11-02T14:36:38.281533Z"}],"nvd":[{"id":"CVE-2021-3689","description":"yii2 is vulnerable to Use of Predictable Algorithm in Random Number Generator","status":"published","published":"2021-08-10T11:15:09.64Z","modified":"2026-06-17T04:05:34.093Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high","assessor":"primary"},{"version":"3.0","score":8.1,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"secondary"},{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-1241","CWE-330"],"updated_at":"2026-11-02T14:06:56.943671Z"}],"osv":[{"id":"CVE-2021-3689","description":"yii2 is vulnerable to Use of Predictable Algorithm in Random Number Generator","status":"published","published":"2021-08-10T11:15:09.64Z","modified":"2026-10-20T10:54:48.717835614Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"updated_at":"2026-11-02T15:44:20.434873Z"},{"id":"GHSA-hq3v-rg6f-6hx4","title":"Use of Insufficiently Random Values in yiisoft/yii2-dev","description":"yii2 is vulnerable to Use of Predictable Algorithm in Random Number Generator","status":"published","published":"2021-09-01T18:35:34Z","modified":"2023-11-08T04:06:16.921517Z","cvss":[{"version":"3.1","score":7.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","level":"high"}],"cwes":["CWE-330"],"updated_at":"2026-11-02T15:46:49.28217Z"}]}}
