CVE-2018-7269 json
Yii SQL injection vulnerability
published 2018-03-21 8 y ago modified 2026-06-17 4 mo ago also GHSA-hhg2-g6h6-c266 , EUVD-2022-4155
- cvss
- 9.8
- version 3.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.9%
- EPSS 1.9% chance of exploitation in 30 days, percentile 79%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- packagist yiisoft/yii2-dev 2.0.12.1, 2.0.13.2, 2.0.15
- yiiframework yii 2.0.15
Exploit prediction
1.90% chance of exploitation in the next 30 days, higher than 79% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.0 | 9.8 | CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| GitHub | 3.0 | 9.8 | CVSS:3.0/AV:N/AC:L/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.12.1 >=2.0.13, <2.0.13.2 >=2.0.14, <2.0.15 |
2.0.12.1 2.0.13.2 2.0.15 |
Classification
- Weakness
-
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
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-7269
advisory
-
github.com
/FriendsOfPHP/security-advisories/blob/master/yiisoft/yii2-dev/CVE-2018-7269.yaml
web
-
github.com
/yiisoft/yii2
package
-
yiiframework.com
/news/168/releasing-yii-2-0-15-and-database-extensions-with-security-fixes
web
Sources
- CVE List CVE-2018-7269
- GitHub Advisory GHSA-hhg2-g6h6-c266
- NVD CVE-2018-7269
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.