CWE
470 352
EPSS
0.034%
Advisory Published
CVE Published
Updated

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

First published: Sun Jun 02 2024(Updated: )

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.

Credit: security@huntr.dev

Affected SoftwareAffected VersionHow to fix
composer/yiisoft/yii2<2.0.49.4
2.0.49.4
Yii Framework=2.0.48

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2024-4990?

    CVE-2024-4990 is considered a high-severity vulnerability due to its ability to allow arbitrary class instantiation.

  • How do I fix CVE-2024-4990?

    To fix CVE-2024-4990, upgrade yiisoft/yii2 to version 2.0.49.4 or later.

  • Who is affected by CVE-2024-4990?

    Any application using yiisoft/yii2 version prior to 2.0.49.4 is affected by CVE-2024-4990.

  • What components are affected by CVE-2024-4990?

    The vulnerable component in CVE-2024-4990 is the base Component class within the yiisoft/yii2 framework.

  • What is the nature of the vulnerability in CVE-2024-4990?

    CVE-2024-4990 allows attackers to instantiate arbitrary classes without proper validation due to an unvalidated magic method.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203