CVE-2018-8074 · mitre
CVE-2018-8074
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 2018-03-21, last changed 2026-06-17. Weakness: CWE-94.
How to fix
Upgrade to a fixed version: yiisoft/yii2-dev 2.0.15 (Packagist); yiisoft/yii2-elasticsearch 2.0.5 (Packagist). For the version that clears every advisory for your installed version, ask an agent for get_remediation.
Where the flaw is in the code
Fixed in yiisoft/yii2 by 702618a863. The fix changed source code, but no function could be located in it. Confidence: inferred (code changed near the fix, but no record names this exact commit as the fix).
Timeline
| 2018-03-21 | Published |
| 2022-05-24 | Package advisory GHSA-m2p5-fwp2-qcw2 |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 1.49% |
| 2026-12-03 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-m2p5-fwp2-qcw2 | yiisoft/yii2-dev (Packagist) | 2.0.15 |
| GHSA-m2p5-fwp2-qcw2 | yiisoft/yii2-elasticsearch (Packagist) | 2.0.5 |
Also known as: GHSA-m2p5-fwp2-qcw2
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2025-2689 | 2025-03-24 | 9.8 | yiisoft Yii2 SortableIterator.php getIterator deserialization |
| CVE-2021-3692 | 2021-08-10 | 5.3 | Use of Predictable Algorithm in Random Number Generator in yiisoft/yii2 |
| CVE-2021-3689 | 2021-08-10 | 7.5 | Use of Predictable Algorithm in Random Number Generator in yiisoft/yii2 |
| CVE-2018-7269 | 2018-03-21 | 9.8 | same package: yiisoft/yii2-dev (Packagist) |
| CVE-2018-6009 | 2018-01-22 | 8.8 | same package: yiisoft/yii2-dev (Packagist) |
| CVE-2017-11516 | 2017-07-21 | 6.1 | same package: yiisoft/yii2-dev (Packagist) |
| CVE-2026-51832 | 2026-10-29 | 7.8 | same weakness (CWE-94) from the same CNA (mitre) |
| CVE-2026-51831 | 2026-10-29 | 7.8 | same weakness (CWE-94) from the same CNA (mitre) |
Add it to your agent
One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.
claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp
Then ask for triage_cve CVE-2018-8074, or call /api/v1/vulnerabilities/CVE-2018-8074. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.