CVE-2018-6009: CSRF

Published Jan 13, 2018
·
Updated

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.

Other sources

The switchIdentity() function in yii\web\User did not regenerate the CSRF token upon a change of identity

Affected Software

24 affected componentsFixes available
composer/yiisoft/yii2<2.0.14
composer/yiisoft/yii2-dev<2.0.14
composer/yiisoft/yii2-dev>=2.0<2.0.14
2.0.14
composer/yiisoft/yii2>=2.0<2.0.14
2.0.14
Yiiframework Yiiframework=2.0.0
Yiiframework Yiiframework=2.0.0-alpha
Yiiframework Yiiframework=2.0.0-beta
Yiiframework Yiiframework=2.0.0-rc
Yiiframework Yiiframework=2.0.1
Yiiframework Yiiframework=2.0.2
Yiiframework Yiiframework=2.0.3
Yiiframework Yiiframework=2.0.4
Yiiframework Yiiframework=2.0.5
Yiiframework Yiiframework=2.0.6
Yiiframework Yiiframework=2.0.7
Yiiframework Yiiframework=2.0.8
Yiiframework Yiiframework=2.0.9
Yiiframework Yiiframework=2.0.10
Yiiframework Yiiframework=2.0.11
Yiiframework Yiiframework=2.0.11.1
Yiiframework Yiiframework=2.0.11.2
Yiiframework Yiiframework=2.0.12
Yiiframework Yiiframework=2.0.13
Yiiframework Yiiframework=2.0.13.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/yiisoft/yii2-dev to a version that resolves this vulnerability.

    Fixed in 2.0.14
  2. Upgrade

    Upgrade composer/yiisoft/yii2 to a version that resolves this vulnerability.

    Fixed in 2.0.14

Event History

Jan 13, 2018
Advisory Published
11:13 PM
Jan 22, 2018
CVE Published
via MITRE·10:00 PM
Data Sourced
via MITRE·10:00 PM
Description
Data Sourced
via NVD·10:29 PM
RemedyDescriptionSeverityWeaknessAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID for this issue?

The vulnerability ID for this issue is CVE-2018-6009.

2

What is the severity of CVE-2018-6009?

CVE-2018-6009 has a severity value of 8.8 (high).

3

What software versions are affected by CVE-2018-6009?

CVE-2018-6009 affects Yii Framework versions up to and including 2.0.14.

4

How does the switchIdentity() function in yii\web\User introduce the vulnerability?

The switchIdentity() function in yii\web\User does not regenerate the CSRF token upon a change of identity, which introduces the vulnerability.

5

How can I fix CVE-2018-6009?

To fix CVE-2018-6009, upgrade to Yii Framework version 2.0.14 or higher.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203