CVE-2024-4990Yiiframework Yii
Critical 9.1 No auth needed
Follow: this CVE · Yiiframework · Yiiframework Yii We alert you by email or Slack (account required).
- Priority
- 70
- CVSS 3.1
- 9.1
- EPSS
- 3.4% probability of exploitation in 30 days · percentile 90
- Auth required
- No
- Published
- Mar 20, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-470
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Yii.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | yiisoft/yii2 |
< 2.0.49.4 |
2.0.49.4 |
composer require "yiisoft/yii2:^2.0.49.4" |
Per OSV / GitHub Advisories (GHSA-cjcc-p67m-7qxm). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| yiiframework | yii | 2.0.48 |
Official sources
References
Links published by the sources. Open them with care.
- huntr.com Exploit