CVE-2020-36655: Command injection in yiisoft/yii2-gii
Published Jan 21, 2023
·Updated
Command injection in yiisoft/yii2-gii
Other sources
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.
Affected Software
3 affected componentsFixes available
Yiiframework Gii Yii2<2.2.2
composer/yiisoft/yii2-gii<2.2.2
2.2.2
composer/yiisoft/yii2-gii<2.2.2
2.2.2
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
composer/yiisoft/yii2-giito a version that resolves this vulnerability.Fixed in 2.2.2
Event History
Jan 21, 2023
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
Description
Data Sourced
via NVD·01:15 AM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·03:30 AM
Data Sourced
via GitHub·03:30 AM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via Packagist·03:30 AM
DescriptionSeverityAffected Software
Frequently Asked Questions
1
What is the vulnerability ID for this issue?
The vulnerability ID for this issue is CVE-2020-36655.
2
What is the severity of CVE-2020-36655?
The severity of CVE-2020-36655 is high (8.8).
3
How does CVE-2020-36655 allow attackers to execute arbitrary code?
CVE-2020-36655 allows remote attackers to execute arbitrary code by embedding PHP code into the model file through the Generator.php messageCategory field.
4
Which version of Yii2 Gii is affected by CVE-2020-36655?
Yii2 Gii before version 2.2.2 is affected by CVE-2020-36655.
5
How can I fix CVE-2020-36655?
To fix CVE-2020-36655, upgrade to Yii2 Gii version 2.2.2 or newer.