Description
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 | Record |
|---|---|---|---|---|
| Packagist | yiisoft/yii2-dev | < 2.0.12.1 | 2.0.12.1 | GHSA-hhg2-g6h6-c266 |
| Packagist | yiisoft/yii2-dev | >= 2.0.13, < 2.0.13.2 | 2.0.13.2 | GHSA-hhg2-g6h6-c266 |
| Packagist | yiisoft/yii2-dev | >= 2.0.14, < 2.0.15 | 2.0.15 | GHSA-hhg2-g6h6-c266 |