High
Security advisory
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2020-36655
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 11:29 UTC · Revision 1
Source evidence
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.
osv:CVE-2020-36655
Complete source record
{
"id": "757c3923436916f61111929cc5d7744fc4cb67b1ccd932c244012ba85305cb8e",
"url": "https://osv.dev/vulnerability/CVE-2020-36655",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2020-36655",
"summary": "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.",
"evidence": "osv:CVE-2020-36655",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2020-36655",
"aliases": [
"CVE-2020-36655",
"GHSA-3mpg-q26j-83j5"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/yiisoft/yii2-gii",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "68efc6fb830feccfaa43354817b5bcd36c7bd5a8"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:yiiframework:gii:*:*:*:*:*:yii2:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "2.2.2"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"versions": [
"2.2.1",
"2.2.0",
"2.1.4",
"2.1.3",
"2.1.2",
"2.1.1",
"2.1.0",
"2.0.8",
"2.0.7",
"2.0.6",
"2.0.5",
"2.0.4",
"2.0.3",
"2.0.2",
"2.0.1",
"2.0.0",
"2.0.0-rc",
"2.0.0-beta"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-36655.json"
}
}
],
"modified": "2026-10-20T10:54:22.226809353Z",
"provider": "osv",
"references": [
"https://github.com/yiisoft/yii2-gii/issues/433",
"https://lab.wallarm.com/yii2-gii-remote-code-execution/"
],
"provider_metadata": {}
},
"related_cves": [
{
"value": "CVE-2020-36655",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 385210,
"published_at": "2023-01-21T01:15:12.343+00:00"
}