{"id":"GHSA-hhg2-g6h6-c266","aliases":["CVE-2018-7269"],"title":"Yii SQL injection vulnerability","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.","severity":"critical","score":9.8,"published":"2022-05-24T16:59:28.000Z","modified":"2024-04-24T18:57:22.449Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"yiisoft/yii2-dev","ranges":[{"events":[{"introduced":"0"},{"fixed":"2.0.12.1"}],"type":"ECOSYSTEM"}],"versions":["2.0.0","2.0.0-alpha","2.0.0-beta","2.0.0-rc","2.0.1","2.0.10","2.0.11","2.0.11.1","2.0.11.2","2.0.12","2.0.2","2.0.3","2.0.4","2.0.5","2.0.6","2.0.7","2.0.8","2.0.9"],"fixed":["2.0.12.1"]},{"ecosystem":"Packagist","name":"yiisoft/yii2-dev","ranges":[{"events":[{"introduced":"2.0.13"},{"fixed":"2.0.13.2"}],"type":"ECOSYSTEM"}],"versions":["2.0.13","2.0.13.1"],"fixed":["2.0.13.2"]},{"ecosystem":"Packagist","name":"yiisoft/yii2-dev","ranges":[{"events":[{"introduced":"2.0.14"},{"fixed":"2.0.15"}],"type":"ECOSYSTEM"}],"versions":["2.0.14","2.0.14.1","2.0.14.2"],"fixed":["2.0.15"]}],"references":["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://github.com/yiisoft/yii2","https://www.yiiframework.com/news/168/releasing-yii-2-0-15-and-database-extensions-with-security-fixes"],"sources":[{"name":"OSV","id":"GHSA-hhg2-g6h6-c266","modified":"2024-04-24T18:57:22.449099Z","url":"https://osv.dev/vulnerability/GHSA-hhg2-g6h6-c266"}],"assessments":[{"source":"OSV","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8}]}