Vulnerabilities · 2018 · Yiiframework
CVE-2018-6009
Yiiframework vulnerability
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.
Affected products
Yiiframework. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Yiiframework runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/yiisoft/yii2/commit/6c0540aa2d6e0fe0fa89e4fd35bba4be5d6cece7 · Patch
- nvd.nist.gov/vuln/detail/CVE-2018-6009
- github.com/FriendsOfPHP/security-advisories/blob/master/yiisoft/yii2-dev/CVE-2018-6009.yam
- github.com/FriendsOfPHP/security-advisories/blob/master/yiisoft/yii2/CVE-2018-6009.yaml
- www.yiiframework.com/news/165/yii-2-0-14-is-released
- github.com/advisories/GHSA-cwhm-272p-3wj9
- nvd.nist.gov/vuln/detail/CVE-2018-6009
- cve.org/CVERecord?id=CVE-2018-6009
More vulnerabilities in Yiiframework products
CVE-2025-48493CVE-2025-32027CVE-2025-2690CVE-2025-2689CVE-2024-58136CVE-2024-32877CVE-2024-4990CVE-2023-50714All 28
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.