Every CVE Search/ Get API key

CVE-2018-7269

Yii SQL injection vulnerability

9.8 CriticalFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

1.90%Up 1.4 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 9.8

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.

Record
CVE-2018-7269
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
7.5 HighAV:N/AC:L/Au:N/C:P/I:P/A:P
Weakness
CWE-89
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2018-7269
Updated
2026-11-02
EUVDEUVD-2022-4155 No score

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.

Record
EUVD-2022-4155
Updated
2026-11-03
GitHub AdvisoriesGHSA-hhg2-g6h6-c266 9.8

Yii SQL injection vulnerability

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.

Record
GHSA-hhg2-g6h6-c266
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-89
Updated
2026-11-02
OSV 9.8

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.

Record
CVE-2018-7269
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVGHSA-hhg2-g6h6-c266 9.8

Yii SQL injection vulnerability

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.

Record
GHSA-hhg2-g6h6-c266
CVSS 3.0
9.8 CriticalCVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-89
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
yiisoft/yii2-dev
Packagist
before 2.0.12.1
2.0.12.1
yiisoft/yii2-dev
Packagist
2.0.13 up to 2.0.13.2
2.0.13.2
yiisoft/yii2-dev
Packagist
2.0.14 up to 2.0.15
2.0.15
yiisoft/yii2-dev
Packagist
before 2.0.12.1, plus listed versions
2.0.02.0.0-alpha2.0.0-beta2.0.0-rc2.0.1
Show 13 moreShow less
2.0.102.0.112.0.11.12.0.11.22.0.122.0.22.0.32.0.42.0.52.0.62.0.72.0.82.0.9
2.0.12.1
yiisoft/yii2-dev
Packagist
2.0.13 up to 2.0.13.2, plus listed versions
2.0.13.1
2.0.13.2
yiisoft/yii2-dev
Packagist
2.0.14 up to 2.0.15, plus listed versions
2.0.14.12.0.14.2
2.0.15

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2018-7269 is a critical vulnerability (CVSS 9.8) in Yiiframework Yii, published March 21, 2018. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.90%, the 79th percentile. Fixed in yiisoft/yii2-dev 2.0.12.1.

References

MoveEnter Open