{"id":"CVE-2018-7269","aliases":["EUVD-2022-4155","GHSA-hhg2-g6h6-c266"],"status":"published","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":{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.01897,"percentile":0.79781,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-89"],"published":"2018-03-21T18:00:00Z","modified":"2026-10-24T10:31:06Z","fixes":[{"ecosystem":"Packagist","package":"yiisoft/yii2-dev","fixed_in":["2.0.12.1","2.0.13.2","2.0.15"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"yiisoft/yii2-dev","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.12.1"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"yiisoft/yii2-dev","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.13"},{"fixed":"2.0.13.2"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"yiisoft/yii2-dev","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.14"},{"fixed":"2.0.15"}]}]},{"source":"osv","ecosystem":"Packagist","package":"yiisoft/yii2-dev","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0.12.1"}]}],"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"]},{"source":"osv","ecosystem":"Packagist","package":"yiisoft/yii2-dev","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.13"},{"fixed":"2.0.13.2"}]}],"versions":["2.0.13","2.0.13.1"]},{"source":"osv","ecosystem":"Packagist","package":"yiisoft/yii2-dev","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.14"},{"fixed":"2.0.15"}]}],"versions":["2.0.14","2.0.14.1","2.0.14.2"]}],"products":[{"vendor":"yiiframework","product":"yii"}],"references":[{"url":"http://www.yiiframework.com/news/168/releasing-yii-2-0-15-and-database-extensions-with-security-fixes/","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-7269","tags":["advisory"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/yiisoft/yii2-dev/CVE-2018-7269.yaml","tags":["web"]},{"url":"https://www.yiiframework.com/news/168/releasing-yii-2-0-15-and-database-extensions-with-security-fixes","tags":["web"]},{"url":"https://github.com/advisories/GHSA-hhg2-g6h6-c266"},{"url":"https://github.com/yiisoft/yii2","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2018-7269","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.","status":"published","published":"2018-03-21T18:00:00Z","modified":"2024-08-05T06:24:11.526Z","updated_at":"2026-11-02T14:35:10.313768Z"}],"euvd":[{"id":"EUVD-2022-4155","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.","status":"published","published":"2018-03-21T18:00:00Z","modified":"2024-08-05T06:24:11Z","updated_at":"2026-11-03T02:40:05.625439Z"}],"ghsa":[{"id":"GHSA-hhg2-g6h6-c266","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.","status":"published","published":"2022-05-24T16:59:28Z","modified":"2024-04-24T18:41:56Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-89"],"updated_at":"2026-11-02T14:37:46.019452Z"}],"nvd":[{"id":"CVE-2018-7269","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.","status":"published","published":"2018-03-21T18:29:00.237Z","modified":"2026-06-17T02:02:54.053Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-89"],"updated_at":"2026-11-02T14:04:24.264003Z"}],"osv":[{"id":"CVE-2018-7269","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.","status":"published","published":"2018-03-21T18:29:00.237Z","modified":"2026-10-24T10:31:06.57854438Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:09.74357Z"},{"id":"GHSA-hhg2-g6h6-c266","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.","status":"published","published":"2022-05-24T16:59:28Z","modified":"2024-04-24T18:57:22.449099Z","cvss":[{"version":"3.0","score":9.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-89"],"updated_at":"2026-11-02T15:46:49.28217Z"}]}}
