CVE-2018-7269 · mitre
CVE-2018-7269
The findByCondition function in framework/db/ActiveRecord.php in Yii 2.x before 2.0.15 allows remote attackers to conduct SQL injection attacks via a findOne() or findAll() call, unless a developer recognizes an undocumented need to sanitize array input.
Published 2018-03-21, last changed 2026-06-17. Weakness: CWE-89.
How to fix
Upgrade to a fixed version: yiisoft/yii2-dev 2.0.12.1, 2.0.13.2, 2.0.15 (Packagist) (each is the fix for its own release line). 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-hhg2-g6h6-c266 |
| 2026-06-17 | Record last changed |
| 2026-11-30 | EPSS when our history starts: 1.90% |
| 2026-12-02 | Code-level analysis added |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-hhg2-g6h6-c266 | yiisoft/yii2-dev (Packagist) | 2.0.12.1 |
| GHSA-hhg2-g6h6-c266 | yiisoft/yii2-dev (Packagist) | 2.0.13.2 |
| GHSA-hhg2-g6h6-c266 | yiisoft/yii2-dev (Packagist) | 2.0.15 |
Also known as: GHSA-hhg2-g6h6-c266
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-8074 | 2018-03-21 | 8.1 | 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-31158 | 2026-10-26 | 9.8 | same weakness (CWE-89) from the same CNA (mitre) |
| CVE-2026-107083 | 2026-10-19 | 9.8 | same weakness (CWE-89) 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-7269, or call /api/v1/vulnerabilities/CVE-2018-7269. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.