Skip to content

CVE-2024-4990 Unsafe Reflection in base Component class in yiisoft/yii2

CriticalCVSS 9.1 EPSS 80.1% PoC
Published
Updated
Exploit status
Proof-of-concept only
CISA SSVC
Proof of concept public · automatable: no · technical impact: total
Technology
PHP

Description

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.

Upgrade path

3 packages: 2 fixed.

PackageAffectedFixed inStatus
yiisoft/yii2 <= latest after latest Fixed
yiisoft/yii2(Packagist) < 2.0.49.4; = 2.0.0; = 2.0.0-alpha; = 2.0.0-beta +70 more 2.0.49.4 Fixed
yiiframework yii = 2.0.48 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
yiisoft/yii2(Packagist) < 2.0.49.4 2.0.49.4
yiisoft/yii2(Packagist) = 2.0.0 No fix listed
yiisoft/yii2(Packagist) = 2.0.0-alpha No fix listed
yiisoft/yii2(Packagist) = 2.0.0-beta No fix listed
yiisoft/yii2(Packagist) = 2.0.0-rc No fix listed
yiisoft/yii2(Packagist) = 2.0.1 No fix listed
yiisoft/yii2(Packagist) = 2.0.10 No fix listed
yiisoft/yii2(Packagist) = 2.0.11 No fix listed
yiisoft/yii2(Packagist) = 2.0.11.1 No fix listed
yiisoft/yii2(Packagist) = 2.0.11.2 No fix listed
yiisoft/yii2(Packagist) = 2.0.12 No fix listed
yiisoft/yii2(Packagist) = 2.0.12.1 No fix listed
yiisoft/yii2(Packagist) = 2.0.12.2 No fix listed
yiisoft/yii2(Packagist) = 2.0.13 No fix listed
yiisoft/yii2(Packagist) = 2.0.13.1 No fix listed
yiisoft/yii2(Packagist) = 2.0.13.2 No fix listed
yiisoft/yii2(Packagist) = 2.0.13.3 No fix listed
yiisoft/yii2(Packagist) = 2.0.14 No fix listed
yiisoft/yii2(Packagist) = 2.0.14.1 No fix listed
yiisoft/yii2(Packagist) = 2.0.14.2 No fix listed
yiisoft/yii2(Packagist) = 2.0.15 No fix listed
yiisoft/yii2(Packagist) = 2.0.15.1 No fix listed
yiisoft/yii2(Packagist) = 2.0.16 No fix listed
yiisoft/yii2(Packagist) = 2.0.16.1 No fix listed
yiisoft/yii2(Packagist) = 2.0.17 No fix listed
Show 51 more
ProductAffected versionsFixed in
yiisoft/yii2(Packagist) = 2.0.18 No fix listed
yiisoft/yii2(Packagist) = 2.0.19 No fix listed
yiisoft/yii2(Packagist) = 2.0.2 No fix listed
yiisoft/yii2(Packagist) = 2.0.20 No fix listed
yiisoft/yii2(Packagist) = 2.0.21 No fix listed
yiisoft/yii2(Packagist) = 2.0.22 No fix listed
yiisoft/yii2(Packagist) = 2.0.23 No fix listed
yiisoft/yii2(Packagist) = 2.0.24 No fix listed
yiisoft/yii2(Packagist) = 2.0.25 No fix listed
yiisoft/yii2(Packagist) = 2.0.26 No fix listed
yiisoft/yii2(Packagist) = 2.0.27 No fix listed
yiisoft/yii2(Packagist) = 2.0.28 No fix listed
yiisoft/yii2(Packagist) = 2.0.29 No fix listed
yiisoft/yii2(Packagist) = 2.0.3 No fix listed
yiisoft/yii2(Packagist) = 2.0.30 No fix listed
yiisoft/yii2(Packagist) = 2.0.31 No fix listed
yiisoft/yii2(Packagist) = 2.0.32 No fix listed
yiisoft/yii2(Packagist) = 2.0.33 No fix listed
yiisoft/yii2(Packagist) = 2.0.34 No fix listed
yiisoft/yii2(Packagist) = 2.0.35 No fix listed
yiisoft/yii2(Packagist) = 2.0.36 No fix listed
yiisoft/yii2(Packagist) = 2.0.37 No fix listed
yiisoft/yii2(Packagist) = 2.0.38 No fix listed
yiisoft/yii2(Packagist) = 2.0.39 No fix listed
yiisoft/yii2(Packagist) = 2.0.39.1 No fix listed
yiisoft/yii2(Packagist) = 2.0.39.2 No fix listed
yiisoft/yii2(Packagist) = 2.0.39.3 No fix listed
yiisoft/yii2(Packagist) = 2.0.4 No fix listed
yiisoft/yii2(Packagist) = 2.0.40 No fix listed
yiisoft/yii2(Packagist) = 2.0.41 No fix listed
yiisoft/yii2(Packagist) = 2.0.41.1 No fix listed
yiisoft/yii2(Packagist) = 2.0.42 No fix listed
yiisoft/yii2(Packagist) = 2.0.42.1 No fix listed
yiisoft/yii2(Packagist) = 2.0.43 No fix listed
yiisoft/yii2(Packagist) = 2.0.44 No fix listed
yiisoft/yii2(Packagist) = 2.0.45 No fix listed
yiisoft/yii2(Packagist) = 2.0.46 No fix listed
yiisoft/yii2(Packagist) = 2.0.47 No fix listed
yiisoft/yii2(Packagist) = 2.0.48 No fix listed
yiisoft/yii2(Packagist) = 2.0.48.1 No fix listed
yiisoft/yii2(Packagist) = 2.0.49 No fix listed
yiisoft/yii2(Packagist) = 2.0.49.1 No fix listed
yiisoft/yii2(Packagist) = 2.0.49.2 No fix listed
yiisoft/yii2(Packagist) = 2.0.49.3 No fix listed
yiisoft/yii2(Packagist) = 2.0.5 No fix listed
yiisoft/yii2(Packagist) = 2.0.6 No fix listed
yiisoft/yii2(Packagist) = 2.0.7 No fix listed
yiisoft/yii2(Packagist) = 2.0.8 No fix listed
yiisoft/yii2(Packagist) = 2.0.9 No fix listed
yiisoft/yii2 <= latest No fix listed
yiiframework yii = 2.0.48 No fix listed

References