Skip to main content
← All vulnerabilities
CVE-2024-4990GHSA-CJCC-P67M-7QXM

Unsafe Reflection in base Component class in yiisoft/yii2

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.0.49.4
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: total

Summary

In yiisoft/yii2 version 2.0.48, the base Component class contains a vulnerability where the `__set()` magic method does not validate that the value passed is a valid Behavior class name or configuration. This allows an attacker to instantiate arbitrary classes, passing parameters to their constructors and invoking setter methods. Depending on the installed dependencies, various types of attacks are possible, including the execution of arbitrary code, retrieval of sensitive information, and unauthorized access.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: total

  3. Record last updated
  4. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • yiisoft yiisoft/yii2

    Version range not reported

  • yiisoft/yii2Packagist

    fixed in 2.0.49.4

References 1

huntr.com