Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. yiisoft/yii2-dev
  4. ›
  5. CVE-2018-6009

CVE-2018-6009: CSRF vulnerability in switchIdentiy

January 22, 2018 (updated February 9, 2018)

The switchIdentity() function in web/User.php did not regenerate the CSRF token upon a change of identity.

References

  • www.yiiframework.com/news/87/yii-2-0-5-is-released-security-fix/
  • nvd.nist.gov/vuln/detail/CVE-2018-6009

Code Behaviors & Features

Detect and mitigate CVE-2018-6009 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.0.14

Fixed versions

  • 2.0.14

Solution

Upgrade to version 2.0.14 or above.

Impact 8.8 HIGH

CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-352: Cross-Site Request Forgery (CSRF)

Source file

packagist/yiisoft/yii2-dev/CVE-2018-6009.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:16:15 +0000.