{"id":"CVE-2021-3692","aliases":["EUVD-2021-2128","GHSA-wwvv-x5mq-h3jj"],"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-12","score":0.017,"percentile":0.77543,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-1241","CWE-330","CWE-338"],"published":"2021-08-10T15:36:00Z","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://github.com/yiisoft/yii2/commit/13f27e4d920a05d53236139e8b07007acd046a46","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://huntr.dev/bounties/55517f19-5c28-4db2-8b00-f78f841e8aba","tags":["x_refsource_CONFIRM","x_transferred","Exploit","Issue Tracking","Third Party Advisory","report","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3692","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-wwvv-x5mq-h3jj"},{"url":"https://github.com/yiisoft/yii2","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2021-3692","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-10T15:36:00Z","modified":"2024-08-03T17:01:08.488Z","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.020035Z"}],"euvd":[{"id":"EUVD-2021-2128","description":"yii2 is vulnerable to Use of Predictable Algorithm in Random Number Generator","status":"published","published":"2021-08-10T15:36:00Z","modified":"2024-08-03T17:01:08Z","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:11.953192Z"}],"ghsa":[{"id":"GHSA-wwvv-x5mq-h3jj","title":"Use of Cryptographically Weak Pseudo-Random Number Generator in yiisoft/yii2-dev","description":"yii2 is vulnerable to Use of Predictable Algorithm in Random Number Generator","status":"published","published":"2021-09-01T18:35:26Z","modified":"2023-02-01T05:06:18Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"medium"}],"cwes":["CWE-330","CWE-338"],"updated_at":"2026-11-02T14:36:38.281533Z"}],"nvd":[{"id":"CVE-2021-3692","description":"yii2 is vulnerable to Use of Predictable Algorithm in Random Number Generator","status":"published","published":"2021-08-10T17:15:10.9Z","modified":"2026-06-17T04:05:34.32Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"medium","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:P/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-1241","CWE-330"],"updated_at":"2026-11-02T14:06:56.943671Z"}],"osv":[{"id":"CVE-2021-3692","description":"yii2 is vulnerable to Use of Predictable Algorithm in Random Number Generator","status":"published","published":"2021-08-10T17:15:10.9Z","modified":"2026-10-20T10:54:48.572257243Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"medium"}],"updated_at":"2026-11-02T15:44:20.434873Z"},{"id":"GHSA-wwvv-x5mq-h3jj","title":"Use of Cryptographically Weak Pseudo-Random Number Generator in yiisoft/yii2-dev","description":"yii2 is vulnerable to Use of Predictable Algorithm in Random Number Generator","status":"published","published":"2021-09-01T18:35:26Z","modified":"2023-11-08T04:06:17.044665Z","cvss":[{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","level":"medium"}],"cwes":["CWE-330","CWE-338"],"updated_at":"2026-11-02T15:46:59.131095Z"}]}}
