CVE-2018-6009 json
Yii Framework Cross-Site Request Forgery (CSRF)
published 2018-01-22 8 y ago modified 2026-06-17 4 mo ago also GHSA-cwhm-272p-3wj9 , EUVD-2022-3649
- cvss
- 8.8
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.6%
- EPSS 0.6% chance of exploitation in 30 days, percentile 48%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- packagist yiisoft/yii2 2.0.14
- packagist yiisoft/yii2-dev 2.0.14
Exploit prediction
0.60% chance of exploitation in the next 30 days, higher than 48% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 8.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
| GitHub | 3.0 | 8.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | yiisoft/yii2 | >=2.0, <2.0.14 |
2.0.14 |
| packagist | yiisoft/yii2-dev | >=2.0, <2.0.14 |
2.0.14 |
Classification
- Weakness
-
- CWE-352 Cross-Site Request Forgery
References
-
github.com
/yiisoft/yii2/commit/6c0540aa2d6e0fe0fa89e4fd35bba4be5d6cece7
web, patch, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2018-6009
advisory
-
github.com
/FriendsOfPHP/security-advisories/blob/master/yiisoft/yii2-dev/CVE-2018-6009.yaml
web
-
github.com
/FriendsOfPHP/security-advisories/blob/master/yiisoft/yii2/CVE-2018-6009.yaml
web
-
github.com
/yiisoft/yii2-framework
package
-
yiiframework.com
/news/165/yii-2-0-14-is-released
web
Sources
- CVE List CVE-2018-6009
- GitHub Advisory GHSA-cwhm-272p-3wj9
- NVD CVE-2018-6009
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.