HighGHSA-3mpg-q26j-83j5CVE-2020-36655

Command injection in yiisoft/yii2-gii

Published 21 Jan 2023 · Updated 2 Apr 2025

Is your project on an affected yiisoft/yii2-gii?

Private repo? Upload its lockfile instead, or connect GitHub to check every repo.

Look after several Laravel or PHP apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie

Affected package

Affected
<2.2.2
Fixed in
2.2.2
Update to the fixed version for your release line, for example:composer require yiisoft/yii2-gii:^2.2.2

Details

Yii Yii2 Gii before 2.2.2 allows remote attackers to execute arbitrary code via the Generator.php messageCategory field. The attacker can embed arbitrary PHP code into the model file.

Is GHSA-3mpg-q26j-83j5 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-gii, and gives you the command that fixes it.

More advisories for yiisoft/yii2-gii

  • MediumCVE-2022-34297Yii2 Gii Cross-site Scripting vulnerability · 10 Dec 2022
yiisoft/yii2-gii security overview

References

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