Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. yiisoft/yii2
  4. ›
  5. CVE-2024-58136

CVE-2024-58136: yiisoft/yii2 Mishandles the Attaching of Behavior Defined by a `__class` Array Key

April 10, 2025

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

  • github.com/advisories/GHSA-ggwg-cmwp-46r5
  • github.com/yiisoft/yii2
  • github.com/yiisoft/yii2/commit/40fe496eda529fd1d933b56a1022ec32d3cd0b12
  • github.com/yiisoft/yii2/compare/2.0.51...2.0.52
  • github.com/yiisoft/yii2/pull/20232
  • github.com/yiisoft/yii2/pull/20232
  • nvd.nist.gov/vuln/detail/CVE-2024-58136
  • www.yiiframework.com/news/709/please-upgrade-to-yii-2-0-52

Code Behaviors & Features

Detect and mitigate CVE-2024-58136 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.0.52

Fixed versions

  • 2.0.52

Solution

Upgrade to version 2.0.52 or above.

Impact 9 CRITICAL

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-424: Improper Protection of Alternate Path

Source file

packagist/yiisoft/yii2/CVE-2024-58136.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:19 +0000.