GitHub Advisory Database
GHSA-hhg2-g6h6-c266
Yii SQL injection vulnerability
Details
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 versions |
|---|---|---|
| Packagist | yiisoft/yii2-dev | All versions before 2.0.12.1 (fixed in 2.0.12.1) |
| Packagist | yiisoft/yii2-dev | From 2.0.13 before 2.0.13.2 (fixed in 2.0.13.2) |
| Packagist | yiisoft/yii2-dev | From 2.0.14 before 2.0.15 (fixed in 2.0.15) |