CVE-2020-36655 json
Command injection in yiisoft/yii2-gii
published 3y ago modified 4mo ago also GHSA-3mpg-q26j-83j5 , EUVD-2023-0322
- cvss
- 8.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.5%
- EPSS 1.5% chance of exploitation in 30 days, percentile 74%
- public exploits
- 0
- none known
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.
Patch / fix
Is CVE-2020-36655 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- total
- Assessed
- last yr.
Exploit prediction
1.52% chance of exploitation in the next 30 days, higher than 74% of all scored CVEs (FIRST EPSS, 2026-11-09).
Exploits and checks
- lab.wallarm.com https://lab.wallarm.com/yii2-gii-remote-code-execution/ referenced PoC, tagged "exploit" by a source, unverified
- github.com https://github.com/yiisoft/yii2-gii/issues/433 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| CNA | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | yiisoft/yii2-gii | <2.2.2 |
2.2.2 |
Classification
- Weakness
-
- CWE-94 Improper Control of Generation of Code
References
-
github.com
/yiisoft/yii2-gii/commit/ed61e0d85f43e23f79d7c9d1b4e5e5c09a32ce4b
web
-
lab.wallarm.com
/yii2-gii-remote-code-execution/
exploit, mitigation, third-party-advisory
-
github.com
/yiisoft/yii2-gii/issues/433
web, exploit, issue-tracking, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2020-36655
advisory
-
github.com
/yiisoft/yii2-gii
package
-
lab.wallarm.com
/yii2-gii-remote-code-execution
web
Sources
- CVE List CVE-2020-36655
- GitHub Advisory GHSA-3mpg-q26j-83j5
- NVD CVE-2020-36655
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.