Lookup for vulnerable packages by Package URL.
| Purl | pkg:composer/yiisoft/yii2@2.0.25 |
| Type | composer |
| Namespace | yiisoft |
| Name | yii2 |
| Version | 2.0.25 |
| Qualifiers |
|
| Subpath | |
| Is_vulnerable | true |
| Next_non_vulnerable_version | 2.0.52 |
| Latest_non_vulnerable_version | 2.0.55 |
| Affected_by_vulnerabilities |
| 0 |
| url |
VCID-7kx3-sxex-f7dz |
| vulnerability_id |
VCID-7kx3-sxex-f7dz |
| summary |
yiisoft/yii2 Mishandles the Attaching of Behavior Defined by a `__class` Array Key
Yii 2 before 2.0.52 mishandles the attaching of behavior that is defined by an __class array key, a CVE-2024-4990 regression, as exploited in the wild in February through April 2025. |
| references |
| 0 |
|
| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
| reference_url |
https://github.com/yiisoft/yii2/pull/20232 |
| reference_id |
|
| reference_type |
|
| scores |
| 0 |
| value |
9 |
| scoring_system |
cvssv3.1 |
| scoring_elements |
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H |
|
| 1 |
| value |
9.0 |
| scoring_system |
cvssv3.1 |
| scoring_elements |
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H/E:H |
|
| 2 |
| value |
CRITICAL |
| scoring_system |
generic_textual |
| scoring_elements |
|
|
| 3 |
| value |
Attend |
| scoring_system |
ssvc |
| scoring_elements |
SSVCv2/E:A/A:N/T:T/P:M/B:A/M:M/D:A/2025-05-02T17:42:11Z/ |
|
|
| url |
https://github.com/yiisoft/yii2/pull/20232 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
|
| fixed_packages |
|
| aliases |
CVE-2024-58136, GHSA-ggwg-cmwp-46r5
|
| risk_score |
10.0 |
| exploitability |
2.0 |
| weighted_severity |
9.0 |
| resource_url |
http://public2.vulnerablecode.io/vulnerabilities/VCID-7kx3-sxex-f7dz |
|
| 1 |
|
| 2 |
| url |
VCID-nnt3-u39w-yqa9 |
| vulnerability_id |
VCID-nnt3-u39w-yqa9 |
| summary |
Unsafe Reflection in base Component class in yiisoft/yii2
Yii2 supports attaching Behaviors to Components by setting properties having the format `'as <behaviour-name>'`.
Internally this is done using the `__set()` magic method. If the value passed to this method is not an instance of the `Behavior` class, a new object is instantiated using `Yii::createObject($value)`. However, there is no validation check that verifies that `$value` is a valid `Behavior` class name or configuration. An attacker that can control the content of the $value variable can then instantiate arbitrary classes, passing parameters to their constructors and then invoking setter methods. |
| references |
|
| fixed_packages |
|
| aliases |
CVE-2024-4990, GHSA-cjcc-p67m-7qxm
|
| risk_score |
4.0 |
| exploitability |
0.5 |
| weighted_severity |
8.0 |
| resource_url |
http://public2.vulnerablecode.io/vulnerabilities/VCID-nnt3-u39w-yqa9 |
|
|
| Fixing_vulnerabilities |
|
| Risk_score | 10.0 |
| Resource_url | http://public2.vulnerablecode.io/packages/pkg:composer/yiisoft/yii2@2.0.25 |