Live threats

All CVEs / Yiiframework

CVE-2018-6009Yiiframework

High 8.8 No auth needed

Priority
68
CVSS 3.0
8.8
EPSS
0.6%
probability of exploitation in 30 days · percentile 43
Auth required
No
Published
Jan 22, 2018
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-352
Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Yiiframework.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Packagist yiisoft/yii2 ≥ 2.0 < 2.0.14 2.0.14 composer require "yiisoft/yii2:^2.0.14"
Packagist yiisoft/yii2-dev ≥ 2.0 < 2.0.14 2.0.14 composer require "yiisoft/yii2-dev:^2.0.14"

Per OSV / GitHub Advisories (GHSA-cwhm-272p-3wj9). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
yiiframeworkyiiframework2.0.0
yiiframeworkyiiframework2.0.0
yiiframeworkyiiframework2.0.0
yiiframeworkyiiframework2.0.0
yiiframeworkyiiframework2.0.1
yiiframeworkyiiframework2.0.2
yiiframeworkyiiframework2.0.3
yiiframeworkyiiframework2.0.4
yiiframeworkyiiframework2.0.5
yiiframeworkyiiframework2.0.6
yiiframeworkyiiframework2.0.7
yiiframeworkyiiframework2.0.8
yiiframeworkyiiframework2.0.9
yiiframeworkyiiframework2.0.10
yiiframeworkyiiframework2.0.11
yiiframeworkyiiframework2.0.11.1
yiiframeworkyiiframework2.0.11.2
yiiframeworkyiiframework2.0.12
yiiframeworkyiiframework2.0.13
yiiframeworkyiiframework2.0.13.1

Official sources

References

Links published by the sources. Open them with care.