CVE-2018-8074 json
Yii Framework Code Injection
published 2018-03-21 8 y ago modified 2026-06-17 4 mo ago also GHSA-m2p5-fwp2-qcw2 , EUVD-2022-4471
- cvss
- 8.1
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.5%
- EPSS 1.5% chance of exploitation in 30 days, percentile 74%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- packagist yiisoft/yii2-dev 2.0.15
- packagist yiisoft/yii2-elasticsearch 2.0.5
- yiiframework yii 2.0.15
Exploit prediction
1.49% chance of exploitation in the next 30 days, higher than 74% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 8.1 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/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.1 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | yiisoft/yii2-dev | >=2.0.0, <2.0.15 |
2.0.15 |
| packagist | yiisoft/yii2-elasticsearch | <2.0.5 |
2.0.5 |
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
References
-
yiiframework.com
/news/168/releasing-yii-2-0-15-and-database-extensions-with-security-fixes/
vendor-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2018-8074
advisory
-
github.com
/FriendsOfPHP/security-advisories/blob/master/yiisoft/yii2-elasticsearch/CVE-2018-8074.yaml
web
-
github.com
/yiisoft/yii2
package
-
yiiframework.com
/news/168/releasing-yii-2-0-15-and-database-extensions-with-security-fixes
web
-
yiiframework.com
/news/168/releasing-yii-2-0-15-and-database-extensions-with-security-fixes
web
Sources
- CVE List CVE-2018-8074
- GitHub Advisory GHSA-m2p5-fwp2-qcw2
- NVD CVE-2018-8074
Fencer Vulns 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.