Code Injection Affecting yiisoft/yii2 package, versions <2.0.50


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team

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-YIISOFTYII2-7176106
  • published 3 Jun 2024
  • disclosed 2 Jun 2024
  • credit Sonia Zorba

How to fix?

Upgrade yiisoft/yii2 to version 2.0.50 or higher.

Overview

yiisoft/yii2 is a Yii PHP Framework.

Affected versions of this package are vulnerable to Code Injection through the __set method. An attacker can execute arbitrary code or commands by manipulating the input to the __set method to instantiate and manipulate objects not intended for such use.

References

CVSS Scores

version 3.1
Expand this section

Snyk

8.1 high
  • Attack Vector (AV)
    Network
  • Attack Complexity (AC)
    High
  • Privileges Required (PR)
    None
  • User Interaction (UI)
    None
  • Scope (S)
    Unchanged
  • Confidentiality (C)
    High
  • Integrity (I)
    High
  • Availability (A)
    High