{"id":"GHSA-cwhm-272p-3wj9","summary":"Yii Framework Cross-Site Request Forgery (CSRF)","details":"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.","aliases":["CVE-2018-6009"],"modified":"2024-04-24T18:56:59.027557Z","published":"2022-05-14T03:45:23Z","database_specific":{"github_reviewed_at":"2024-04-24T18:32:29Z","nvd_published_at":"2018-01-22T22:29:00Z","cwe_ids":["CWE-352"],"severity":"HIGH","github_reviewed":true},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-6009"},{"type":"WEB","url":"https://github.com/yiisoft/yii2/commit/6c0540aa2d6e0fe0fa89e4fd35bba4be5d6cece7"},{"type":"WEB","url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/yiisoft/yii2-dev/CVE-2018-6009.yaml"},{"type":"WEB","url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/yiisoft/yii2/CVE-2018-6009.yaml"},{"type":"PACKAGE","url":"https://github.com/yiisoft/yii2-framework"},{"type":"WEB","url":"https://www.yiiframework.com/news/165/yii-2-0-14-is-released"}],"affected":[{"package":{"name":"yiisoft/yii2","ecosystem":"Packagist","purl":"pkg:composer/yiisoft/yii2"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0"},{"fixed":"2.0.14"}]}],"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.2","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8","2.0.9"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-cwhm-272p-3wj9/GHSA-cwhm-272p-3wj9.json"}},{"package":{"name":"yiisoft/yii2-dev","ecosystem":"Packagist","purl":"pkg:composer/yiisoft/yii2-dev"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0"},{"fixed":"2.0.14"}]}],"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.2","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8","2.0.9"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-cwhm-272p-3wj9/GHSA-cwhm-272p-3wj9.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"}]}