Yii SQL injection vulnerability
Critical severity
GitHub Reviewed
Published
May 24, 2022
to the GitHub Advisory Database
•
Updated Apr 24, 2024
Package
Affected versions
< 2.0.12.1
>= 2.0.13, < 2.0.13.2
>= 2.0.14, < 2.0.15
Patched versions
2.0.12.1
2.0.13.2
2.0.15
Description
Published to the GitHub Advisory Database
May 24, 2022
Reviewed
Apr 24, 2024
Last updated
Apr 24, 2024
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.References