Remote Code Execution (RCE) Affecting yiisoft/yii2-gii package, versions <2.2.2


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of concept
EPSS
1.32% (86th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Remote Code Execution (RCE) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PHP-YIISOFTYII2GII-3244370
  • published22 Jan 2023
  • disclosed22 Jan 2023
  • creditd90pwn

Introduced: 22 Jan 2023

CVE-2020-36655  (opens in a new tab)
CWE-94  (opens in a new tab)

How to fix?

Upgrade yiisoft/yii2-gii to version 2.2.2 or higher.

Overview

Affected versions of this package are vulnerable to Remote Code Execution (RCE). Allows remote attackers with access to the https://localhost/gii/ endpoint to execute arbitrary code via the Generator.php messageCategory field. The attacker can embed arbitrary PHP code into the model file.

CVSS Scores

version 3.1