CVE-2020-36655 Command injection in yiisoft/yii2-gii

High 8.8 Published Updated

Remote attackers can execute arbitrary PHP code via the Gii module's messageCategory field, requiring the Gii module to be enabled.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2020-36655?

CVE-2020-36655 is a high-severity code injection vulnerability in n/a, published on 21 Jan 2023. Any signed-in user can exploit it over the network, with no action from the victim.

Official 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.

Weakness: CWE-94

Which versions are affected by CVE-2020-36655?

2 open source packages ship an affected version, including yiisoft/yii2-gii. It affects 1 product.

PackageAffectedFixed in
yiisoft/yii2-gii PackagistAll versions2.2.2
yiisoft/yii2-gii PackagistAll versions2.2.2

Products include Yiiframework Gii.

How do I fix CVE-2020-36655?

Upgrade yiisoft/yii2-gii to 2.2.2 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2020-36655 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-36655 exists.

Sources

Also known as GHSA-3mpg-q26j-83j5.

Is CVE-2020-36655 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free