CriticalGHSA-hhg2-g6h6-c266CVE-2018-7269

Yii SQL injection vulnerability

Published 24 May 2022 · Updated 24 Apr 2024

Affected packages

Affected
<2.0.12.1
Fixed in
2.0.12.1
Update to the fixed version for your release line, for example:composer require yiisoft/yii2-dev:^2.0.12.1
Affected
>=2.0.13 <2.0.13.2
Fixed in
2.0.13.2
Update to the fixed version for your release line, for example:composer require yiisoft/yii2-dev:^2.0.13.2
Affected
>=2.0.14 <2.0.15
Fixed in
2.0.15
Update to the fixed version for your release line, for example:composer require yiisoft/yii2-dev:^2.0.15

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.

Is GHSA-hhg2-g6h6-c266 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected yiisoft/yii2-dev, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.