Live threats

All CVEs / Yiiframework

CVE-2024-4990Yiiframework Yii

Critical 9.1 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Yii.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
yiiframeworkyii2.0.48

Official sources

References

Links published by the sources. Open them with care.