critical9.8
CVE-2018-7269
Yii SQL injection vulnerability
Impact
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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| composer | yiisoft/yii2-dev | < 2.0.12.1 | 2.0.12.1 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Yiiframework | Yii | from 2.0.0 before 2.0.15 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- http://www.yiiframework.com/news/168/releasing-yii-2-0-15-and-database-extensions-with-security-fixes/
- https://github.com/advisories/GHSA-hhg2-g6h6-c266
- https://nvd.nist.gov/vuln/detail/CVE-2018-7269
- https://github.com/FriendsOfPHP/security-advisories/blob/master/yiisoft/yii2-dev/CVE-2018-7269.yaml
- https://www.yiiframework.com/news/168/releasing-yii-2-0-15-and-database-extensions-with-security-fixes