Home / Yiiframework / Yiiframework / CVE-2018-6009
CVE-2018-6009: is it exploited, and which versions of Yiiframework are affected and fixed?
CVE-2018-6009 is a cross-site request forgery (CSRF) vulnerability in Yiiframework. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 07:38 UTC). Affected: yiisoft/yii2 from 2.0 before 2.0.14 and yiisoft/yii2-dev from 2.0 before 2.0.14 (GitHub advisory GHSA-cwhm-272p-3wj9). Fixed in 2.0.14 (GitHub advisory GHSA-cwhm-272p-3wj9). Severity: High (8.8, CVSS 3.0, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 07:38 UTC, CVE record November 19, 2026, 07:17 UTC and NVD November 19, 2026, 08:35 UTC.
What is CVE-2018-6009?
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.
From the CVE record by mitre, last updated August 5, 2024, 05:47 UTC.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Packagist | yiisoft/yii2 | >= 2.0, < 2.0.14 | 2.0.14 | GHSA-cwhm-272p-3wj9 |
| Packagist | yiisoft/yii2-dev | >= 2.0, < 2.0.14 | 2.0.14 | GHSA-cwhm-272p-3wj9 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated April 24, 2024. Summary: Yii Framework Cross-Site Request Forgery (CSRF).
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| yiiframework | yiiframework | 2.0.0 | application |
| yiiframework | yiiframework | 2.0.1 | application |
| yiiframework | yiiframework | 2.0.2 | application |
| yiiframework | yiiframework | 2.0.3 | application |
| yiiframework | yiiframework | 2.0.4 | application |
| yiiframework | yiiframework | 2.0.5 | application |
| yiiframework | yiiframework | 2.0.6 | application |
| yiiframework | yiiframework | 2.0.7 | application |
| yiiframework | yiiframework | 2.0.8 | application |
| yiiframework | yiiframework | 2.0.9 | application |
| yiiframework | yiiframework | 2.0.10 | application |
| yiiframework | yiiframework | 2.0.11 | application |
| yiiframework | yiiframework | 2.0.11.1 | application |
| yiiframework | yiiframework | 2.0.11.2 | application |
| yiiframework | yiiframework | 2.0.12 | application |
| yiiframework | yiiframework | 2.0.13 | application |
| yiiframework | yiiframework | 2.0.13.1 | application |
NVD analysis (status Modified), last modified June 17, 2026, 02:01 UTC.
How severe is CVE-2018-6009?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 8.8 | CVSS 3.0 | CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | NVD |
| Medium 6.8 | CVSS 2.0 | AV:N/AC:M/Au:N/C:P/I:P/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2018-6009 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 0.60% probability of exploitation activity in the next 30 days, percentile 50.0 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-352 Cross-Site Request Forgery
Where are the vendor advisories and references?
- https://github.com/yiisoft/yii2/commit/6c0540aa2d6e0fe0fa89e4fd35bba4be5d6cece7 x_refsource_CONFIRM
When was it published, and where is the official record?
- Reserved
- January 22, 2018
- Published
- January 22, 2018, 22:00 UTC
- CVE record updated
- August 5, 2024, 05:47 UTC by mitre
- NVD
- Modified, last modified June 17, 2026, 02:01 UTC
- Last checked
- CVE list November 19, 2026, 07:17 UTC; NVD November 19, 2026, 08:35 UTC; KEV December 3, 2026, 07:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Yiiframework?
- Jan 22, 2018CVE-2018-6010 Yiiframework: cross-site scripting (XSS)
- May 14, 2015CVE-2015-3397 Yiiframework: cross-site scripting (XSS)
- Jul 3, 2014CVE-2014-4672 Yiiframework: code injection (remote code execution)
Questions about CVE-2018-6009
Is CVE-2018-6009 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 07:38 UTC. FIRST's EPSS gives it a 0.60% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Yiiframework are affected by CVE-2018-6009?
yiisoft/yii2 from 2.0 before 2.0.14 and yiisoft/yii2-dev from 2.0 before 2.0.14, per the GitHub advisory GHSA-cwhm-272p-3wj9. The tables above give every range the sources list.
Which version fixes CVE-2018-6009?
2.0.14, per the GitHub advisory GHSA-cwhm-272p-3wj9. Check the vendor's advisory before you rely on it.
How severe is CVE-2018-6009?
High (8.8, CVSS 3.0, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2018-6009?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.