{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2018-6009","id":"CVE-2018-6009","title":"Yii Framework Cross-Site Request Forgery (CSRF)","description":"In Yii Framework 2.x before 2.0.14, the switchIdentity function in web/User.php did not regenerate the CSRF token upon a change of identity.","descriptionLong":"In Yii Framework 2.x before 2.0.14, the switchIdentity function in web/User.php did not regenerate the CSRF token upon a change of identity.","published":"2018-01-22T22:00:00.000Z","updated":"2026-10-24T10:47:33.223194727Z","reserved":"2018-01-22T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"},{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","rating":"high","source":"GitHub"},{"version":"2.0","score":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","rating":"medium","source":"NVD"}],"rating":"high","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"status":"affected","version":"n/a"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"yiisoft/yii2","purl":"pkg:composer/yiisoft/yii2","ranges":[">=2.0 <2.0.14"],"fixed":["2.0.14"],"advisory":"GHSA-cwhm-272p-3wj9"},{"ecosystem":"Packagist","name":"yiisoft/yii2-dev","purl":"pkg:composer/yiisoft/yii2-dev","ranges":[">=2.0 <2.0.14"],"fixed":["2.0.14"],"advisory":"GHSA-cwhm-272p-3wj9"}],"cwes":["CWE-352"],"aliases":["GHSA-cwhm-272p-3wj9"],"references":[{"url":"https://github.com/yiisoft/yii2/commit/6c0540aa2d6e0fe0fa89e4fd35bba4be5d6cece7","tags":["x_refsource_CONFIRM","x_transferred","Patch","Third Party Advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-6009","tags":["advisory"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/yiisoft/yii2-dev/CVE-2018-6009.yaml","tags":["web"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/yiisoft/yii2/CVE-2018-6009.yaml","tags":["web"]},{"url":"https://github.com/yiisoft/yii2-framework","tags":["package"]},{"url":"https://www.yiiframework.com/news/165/yii-2-0-14-is-released","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00597,"epssPercentile":0.49305,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2018-6009","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-6009","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2018-6009","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-cwhm-272p-3wj9","ok":true,"note":"GHSA-cwhm-272p-3wj9"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2018-6009","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}