CONTENTUM.COMA specialist. A plan. A result.

Vulnerabilities · 2024 · Yiiframework

CVE-2024-4990
Yiiframework Yii vulnerability

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.

High priority: this vulnerability is rated critical and can be attacked over the network without a login.

Affected products

Yii. The exact versions are in the references.

What to do now

  • Check your exposureFind out whether Yiiframework Yii runs anywhere in your environment, including systems of suppliers.
  • UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
  • Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.

References

More vulnerabilities in Yiiframework products

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.