ADVISORIES

GitHub Advisory Database

GHSA-hhg2-g6h6-c266

Yii SQL injection vulnerability

Critical CVE-2018-7269

Details

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

EcosystemPackageAffected versions
Packagistyiisoft/yii2-dev
All versions before 2.0.12.1 (fixed in 2.0.12.1)
Packagistyiisoft/yii2-dev
From 2.0.13 before 2.0.13.2 (fixed in 2.0.13.2)
Packagistyiisoft/yii2-dev
From 2.0.14 before 2.0.15 (fixed in 2.0.15)

References