GitHub Advisoryadvisory · Packagist
GHSA-hhg2-g6h6-c266 Yii SQL injection vulnerability
CRITICAL
Official page ↗
- Aliases
- CVE-2018-7269
- Ecosystem
- Packagist
- Packages
- yiisoft/yii2-dev
- Severity
- Critical
- CVSS vector
- CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weaknesses
- CWE-89
- Reviewed
- 2024-04-24
Affected packages
• Packagist yiisoft/yii2-dev: < 2.0.12.1 → fixed in 2.0.12.1
• Packagist yiisoft/yii2-dev: >= 2.0.13, < 2.0.13.2 → fixed in 2.0.13.2
• Packagist yiisoft/yii2-dev: >= 2.0.14, < 2.0.15 → fixed in 2.0.15
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.
Related
Alias · CVE (1)
- CVE-2018-7269 The findByCondition function in framework/db/ActiveRecord.php in Yii 2.x before 2.0.15 allows remote attackers to conduct SQL injection… vulnerability
Weakness · CWE (1)
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2018-7269 advisory
- https://github.com/FriendsOfPHP/security-advisories/blob/master/yiisoft/yii2-dev/CVE-2018-7269.yaml web
- https://github.com/yiisoft/yii2 package
- https://www.yiiframework.com/news/168/releasing-yii-2-0-15-and-database-extensions-with-security-fixes web