Skip to content
OpenAdvisories
Critical · 9.8 CVE-2018-7269 EUVD-2022-4155GHSA-hhg2-g6h6-c266

Yii SQL injection vulnerability

Published Mar 21, 2018 · Updated Aug 5, 2024 · Assigned by mitre

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.

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist yiisoft/yii2-dev < 2.0.12.1 2.0.12.1 GHSA-hhg2-g6h6-c266
Packagist yiisoft/yii2-dev >= 2.0.13, < 2.0.13.2 2.0.13.2 GHSA-hhg2-g6h6-c266
Packagist yiisoft/yii2-dev >= 2.0.14, < 2.0.15 2.0.15 GHSA-hhg2-g6h6-c266

References