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


0.0
high

Snyk CVSS

    Attack Complexity Low
    Privileges Required High
    Confidentiality High
    Integrity High
    Availability High

    Threat Intelligence

    Exploit Maturity Proof of concept
    EPSS 0.73% (81st percentile)
Expand this section
NVD
8.8 high

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 ID SNYK-PHP-YIISOFTYII2GII-3244370
  • published 22 Jan 2023
  • disclosed 22 Jan 2023
  • credit d90pwn

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.