KeygraphLabs · CVE MCP

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.

CVSS
9.8
critical, from NVD
EPSS
1.90%
percentile 80.4%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

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-21Published
2022-05-24Package advisory GHSA-hhg2-g6h6-c266
2026-06-17Record last changed
2026-11-30EPSS when our history starts: 1.90%
2026-12-02Code-level analysis added

Affected packages

AdvisoryPackageFixed in
GHSA-hhg2-g6h6-c266yiisoft/yii2-dev (Packagist)2.0.12.1
GHSA-hhg2-g6h6-c266yiisoft/yii2-dev (Packagist)2.0.13.2
GHSA-hhg2-g6h6-c266yiisoft/yii2-dev (Packagist)2.0.15

Also known as: GHSA-hhg2-g6h6-c266

Related

CVEPublishedCVSSSummary
CVE-2025-26892025-03-249.8yiisoft Yii2 SortableIterator.php getIterator deserialization
CVE-2021-36922021-08-105.3Use of Predictable Algorithm in Random Number Generator in yiisoft/yii2
CVE-2021-36892021-08-107.5Use of Predictable Algorithm in Random Number Generator in yiisoft/yii2
CVE-2018-80742018-03-218.1same package: yiisoft/yii2-dev (Packagist)
CVE-2018-60092018-01-228.8same package: yiisoft/yii2-dev (Packagist)
CVE-2017-115162017-07-216.1same package: yiisoft/yii2-dev (Packagist)
CVE-2026-311582026-10-269.8same weakness (CWE-89) from the same CNA (mitre)
CVE-2026-1070832026-10-199.8same 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.

NVD · CVE.org