CVE-2018-8074
HIGH 8.1CVSS 3.0Yii Framework Code Injection
Yii 2.x before 2.0.15 allows remote attackers to inject unintended search conditions via a variant of the CVE-2018-7269 attack in conjunction with the Elasticsearch extension.
- Published
- 21 Mar 2018
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-94
- Also known as
- GHSA-m2p5-fwp2-qcw2
- Sources
- NVDJSONOSV GHSA-m2p5-fwp2-qcw2JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.0 | HIGH 8.1 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.0 | HIGH 8.1 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | yiiframework | yiicpe:2.3:a:yiiframework:yii:*:*:*:*:*:*:*:* |
>= 2.0.0, < 2.0.15 | 2.0.15 |
| OSV | Packagist | yiisoft/yii2-dev | >= 2.0.0, < 2.0.15 | 2.0.15 |
| OSV | Packagist | yiisoft/yii2-elasticsearch | < 2.0.5 | 2.0.5 |
References
- http://www.yiiframework.com/news/168/releasing-yii-2-0-15-and-database-extensions-with-security-fixes/ · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2018-8074 · ADVISORY
- https://github.com/FriendsOfPHP/security-advisories/blob/master/yiisoft/yii2-elasticsearch/CVE-2018-8074.yaml · WEB
- https://github.com/yiisoft/yii2 · PACKAGE
- https://www.yiiframework.com/news/168/releasing-yii-2-0-15-and-database-extensions-with-security-fixes · WEB
History
- 25 Nov 2026 20:20 UTC · NVD: first stored (published 21 Mar 2018)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 24 May 2022)