{"id":"CVE-2018-6009","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":["GHSA-cwhm-272p-3wj9"],"modified":"2026-08-07T11:48:26.176475183Z","published":"2018-01-22T22:29:00.207Z","database_specific":{"unresolved_ranges":[{"extracted_events":[{"introduced":"2.0.0"},{"last_affected":"2.0.0"}],"source":"CPE_STRING","vendor_product":"yiiframework:yiiframework","cpes":["cpe:2.3:a:yiiframework:yiiframework:2.0.0:*:*:*:*:*:*:*"]}]},"references":[{"type":"FIX","url":"https://github.com/yiisoft/yii2/commit/6c0540aa2d6e0fe0fa89e4fd35bba4be5d6cece7"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/yiisoft/yii2","events":[{"introduced":"ae8d9782707b89315194ec70a139fece122b8977"},{"last_affected":"1d7f6cd20e24dfa486e72cc9fc87cfbe7008e084"},{"fixed":"6c0540aa2d6e0fe0fa89e4fd35bba4be5d6cece7"}],"database_specific":{"cpe":["cpe:2.3:a:yiiframework:yiiframework:2.0.0:*:*:*:*:*:*:*","cpe:2.3:a:yiiframework:yiiframework:2.0.0:alpha:*:*:*:*:*:*","cpe:2.3:a:yiiframework:yiiframework:2.0.0:beta:*:*:*:*:*:*","cpe:2.3:a:yiiframework:yiiframework:2.0.0:rc:*:*:*:*:*:*","cpe:2.3:a:yiiframework:yiiframework:2.0.1:*:*:*:*:*:*:*","cpe:2.3:a:yiiframework:yiiframework:2.0.2:*:*:*:*:*:*:*","cpe:2.3:a:yiiframework:yiiframework:2.0.3:*:*:*:*:*:*:*","cpe:2.3:a:yiiframework:yiiframework:2.0.4:*:*:*:*:*:*:*","cpe:2.3:a:yiiframework:yiiframework:2.0.5:*:*:*:*:*:*:*","cpe:2.3:a:yiiframework:yiiframework:2.0.6:*:*:*:*:*:*:*","cpe:2.3:a:yiiframework:yiiframework:2.0.7:*:*:*:*:*:*:*","cpe:2.3:a:yiiframework:yiiframework:2.0.8:*:*:*:*:*:*:*","cpe:2.3:a:yiiframework:yiiframework:2.0.9:*:*:*:*:*:*:*","cpe:2.3:a:yiiframework:yiiframework:2.0.10:*:*:*:*:*:*:*","cpe:2.3:a:yiiframework:yiiframework:2.0.11:*:*:*:*:*:*:*","cpe:2.3:a:yiiframework:yiiframework:2.0.11.1:*:*:*:*:*:*:*","cpe:2.3:a:yiiframework:yiiframework:2.0.11.2:*:*:*:*:*:*:*","cpe:2.3:a:yiiframework:yiiframework:2.0.12:*:*:*:*:*:*:*","cpe:2.3:a:yiiframework:yiiframework:2.0.13:*:*:*:*:*:*:*","cpe:2.3:a:yiiframework:yiiframework:2.0.13.1:*:*:*:*:*:*:*"],"extracted_events":[{"introduced":"2.0.0"},{"last_affected":"2.0.0"},{"introduced":"2.0.0-alpha"},{"last_affected":"2.0.0-alpha"},{"introduced":"2.0.0-beta"},{"last_affected":"2.0.0-beta"},{"introduced":"2.0.0-rc"},{"last_affected":"2.0.0-rc"},{"introduced":"2.0.1"},{"last_affected":"2.0.1"},{"introduced":"2.0.2"},{"last_affected":"2.0.2"},{"introduced":"2.0.3"},{"last_affected":"2.0.3"},{"introduced":"2.0.4"},{"last_affected":"2.0.4"},{"introduced":"2.0.5"},{"last_affected":"2.0.5"},{"introduced":"2.0.6"},{"last_affected":"2.0.6"},{"introduced":"2.0.7"},{"last_affected":"2.0.7"},{"introduced":"2.0.8"},{"last_affected":"2.0.8"},{"introduced":"2.0.9"},{"last_affected":"2.0.9"},{"introduced":"2.0.10"},{"last_affected":"2.0.10"},{"introduced":"2.0.11"},{"last_affected":"2.0.11"},{"introduced":"2.0.11.1"},{"last_affected":"2.0.11.1"},{"introduced":"2.0.11.2"},{"last_affected":"2.0.11.2"},{"introduced":"2.0.12"},{"last_affected":"2.0.12"},{"introduced":"2.0.13"},{"last_affected":"2.0.13"},{"introduced":"2.0.13.1"},{"last_affected":"2.0.13.1"}],"source":["CPE_STRING","REFERENCES"]}}],"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.13","2.0.13.1","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://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2018-6009.json"}}],"schema_version":"1.8.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"}]}