{"id":"CVE-2021-3689","aliases":["CVE-2021-3689","GHSA-hq3v-rg6f-6hx4"],"related":[],"kind":"vulnerability","state":"published","title":"Use of Predictable Algorithm in Random Number Generator in yiisoft/yii2","summary":"yii2 is vulnerable to Use of Predictable Algorithm in Random Number Generator","summarySource":"cvelist","descriptions":[{"lang":"en","text":"yii2 is vulnerable to Use of Predictable Algorithm in Random Number Generator","source":"cvelist"},{"lang":"es","text":"yii2 es vulnerable al Uso de un Algoritmo Predecible en el Generador de Números Aleatorios","source":"nvd"}],"published":"2021-08-10T10:21:30.000Z","modified":"2026-06-17T04:05:34.093Z","severity":{"scorer":"@huntrdev","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},"severities":[{"scorer":"@huntrdev","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.1,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","score":5,"rating":"MEDIUM"}],"cwes":["CWE-330","CWE-1241"],"affected":[{"ranges":[{"type":"custom","introduced":"unspecified","lastAffected":"2.0.42.1","status":"affected"}],"vendor":"yiisoft","product":"yiisoft/yii2","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.0.43"}],"ecosystem":"Packagist","package":"yiisoft/yii2-dev","purl":"pkg:composer/yiisoft/yii2-dev","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2.0.0","fixed":"2.0.43"}],"vendor":"yiiframework","product":"yii","cpe":"cpe:2.3:a:yiiframework:yii:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://huntr.dev/bounties/50aad1d4-eb00-4573-b8a4-dbe38e2c229f","tags":["exploit","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/yiisoft/yii2/commit/13f27e4d920a05d53236139e8b07007acd046a46","tags":["patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3689","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/yiisoft/yii2","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"@huntrdev","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-3689","url":"https://www.cve.org/CVERecord?id=CVE-2021-3689","licence":"CVE Terms of Use","modified":"2024-08-03T17:01:07.696Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-hq3v-rg6f-6hx4","url":"https://github.com/advisories/GHSA-hq3v-rg6f-6hx4","licence":"CC-BY-4.0","modified":"2023-11-08T04:06:16.921Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-3689","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3689","licence":"Public domain","modified":"2026-06-17T04:05:34.093Z"}],"updatedAt":"2026-11-25T22:58:03.083Z","epss":{"score":0.01851,"percentile":0.79733,"date":"2026-12-01T12:00:22.000Z"}}