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?
Look after several Laravel or PHP apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
yiisoft/yii2-giiComposer
- 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.2Details
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
References
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.