CVE-2024-4990
published high CVSS 3.0 · 8.1Unsafe Reflection in base Component class in yiisoft/yii2
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| yiisoft | — | yiisoft/yii2unspecified through latest | Affected | Not stated | @huntr_ai |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.0
- Base score
- 8.1 / 10
- Severity
- high
- Provider
- @huntr_ai · cna
- Vector string
- CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| yiisoft | yiisoft/yii2 | unspecified through latest (affected · custom) | @huntr_ai · cna |
Weaknesses
1- CWE-470 CWE-470 Use of Externally-Controlled Input to Select Classes or Code
References
1Provider assertions
2@huntr_ai · cna
Unsafe Reflection in base Component class in yiisoft/yii2
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 471c44c87bd42446ed738aea2693bfa54cc2a8f0a34a7b72c11afe89b4e55c53
- Ingested
- 23 Sep 2026, 08:29:52 UTC
- Source record
- Official CVE record