{"id":"CVE-2020-36655","published":"2023-01-21T00:00:00Z","modified":"2025-04-02T13:48:32Z","title":"Yii Yii2 Gii before 2.2.2 allows remote attackers to execute arbitrary code via the Generator.php messageCategory field","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.8,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CISA ADP Vulnrichment"},"epss":{"score":0.01581,"percentile":0.76145,"provenance":"source"},"cwes":[{"id":"CWE-94","name":"Improper Control of Generation of Code"}],"references":[{"url":"https://lab.wallarm.com/yii2-gii-remote-code-execution/","tags":[]},{"url":"https://github.com/yiisoft/yii2-gii/issues/433","tags":[]}],"priority":{"score":21.4,"factors":[{"name":"EPSS percentile","points":15.23},{"name":"CVSS severity","points":6.16}]},"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-04-02T13:47:08.098037Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"yiisoft/yii2-gii","vulnerableRanges":["<2.2.2"],"patched":["2.2.2"],"from":["GHSA-3mpg-q26j-83j5"],"provenance":"source"}],"summary":{"text":"The Yii2 Gii code generation tool in the Yii framework, prior to version 2.2.2, contains a code injection flaw in the messageCategory field of Generator.php. An attacker with remote access and low-privilege authentication, requiring no user interaction, can embed arbitrary PHP code into the generated model file and execute it.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:06:45Z"},"euvd":{"id":"EUVD-2023-0322","exploited":false,"provenance":"source"}}