GHSA-3mpg-q26j-83j5high8.8
Command injection in yiisoft/yii2-gii
Impact
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.
Source excerpt · OSVAffected packages
Start with the recorded fix for your release branch. Check your installed version and test compatibility before upgrading. Fixing this advisory does not rule out other vulnerabilities in the release.
yiisoft/yii2-gii Packagist
| Affected range | Recorded fix |
|---|---|
| Earlier releases before 2.2.2Ecosystem versions | 2.2.2 |
Version evidence: OSV · GHSA-3mpg-q26j-83j5
View original version evidence (19 explicit versions)
Original source description
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.
References
- Security advisory nvd.nist.gov/vuln/detail/CVE-2020-36655
- Source reference github.com/yiisoft/yii2-gii/issues/433
- Patch github.com/yiisoft/yii2-gii/commit/ed61e0d85f43e23f79d7c9d1b4e5e5c09a32ce4b
- Source reference github.com/yiisoft/yii2-gii
- Source reference lab.wallarm.com/yii2-gii-remote-code-execution