high8.8
CVE-2018-6009
Yii Framework Cross-Site Request Forgery (CSRF)
Impact
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 packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| composer | yiisoft/yii2 | >= 2.0, < 2.0.14 | 2.0.14 |
| composer | yiisoft/yii2-dev | >= 2.0, < 2.0.14 | 2.0.14 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Yiiframework | Yiiframework | Versions 2.0.0, 2.0.1, 2.0.2, 2.0.3, 2.0.4, 2.0.5 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/yiisoft/yii2/commit/6c0540aa2d6e0fe0fa89e4fd35bba4be5d6cece7
- https://github.com/advisories/GHSA-cwhm-272p-3wj9
- https://nvd.nist.gov/vuln/detail/CVE-2018-6009
- https://github.com/FriendsOfPHP/security-advisories/blob/master/yiisoft/yii2-dev/CVE-2018-6009.yaml
- https://github.com/FriendsOfPHP/security-advisories/blob/master/yiisoft/yii2/CVE-2018-6009.yaml
- https://www.yiiframework.com/news/165/yii-2-0-14-is-released