CVE-2018-6009 Yii Framework Cross-Site Request Forgery (CSRF)
Attackers can bypass CSRF protection during identity switches in Yii Framework, potentially allowing unauthorized actions on behalf of authenticated users.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2018-6009?
CVE-2018-6009 is a high-severity vulnerability in n/a, published on 22 Jan 2018. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-352
Which versions are affected by CVE-2018-6009?
4 open source packages ship an affected version, including yiisoft/yii2 and yiisoft/yii2-dev. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
yiisoft/yii2 Packagist | From 2.0 | 2.0.14 |
yiisoft/yii2 Packagist | From 2.0 | 2.0.14 |
yiisoft/yii2-dev Packagist | From 2.0 | 2.0.14 |
yiisoft/yii2-dev Packagist | From 2.0 | 2.0.14 |
Products include Yiiframework Yiiframework.
How do I fix CVE-2018-6009?
Upgrade yiisoft/yii2 to 2.0.14 or later.
Is CVE-2018-6009 being exploited?
There is no known exploitation of CVE-2018-6009 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-cwhm-272p-3wj9.