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

critical KEV Affects yiisoft/yii2. Feed 2026.11.23.2, updated 2026-11-23; published ; advisory modified ; listed on CISA KEV 2025-05-02.

yiisoft/yii2 Mishandles the Attaching of Behavior Defined by a `__class` Array Key

Package
yiisoft/yii2 Composer
Affected versions
<2.0.52
Fixed in
2.0.52
Severity
critical  CVSS 9.0
Exploitation
KEV listed by CISA as actively exploited · EPSS 88% (99.8th percentile)
Published
2025-04-10
Source
osv.dev

References

CWE-424
NVD recordyiisoft/yii2 advisories

Quick answers

Is CVE-2024-58136 being actively exploited?

Yes. It is on CISA's Known Exploited Vulnerabilities list (added 2025-05-02), which means attackers are using it now.

Which version fixes CVE-2024-58136?

yiisoft/yii2: 2.0.52.

How do I check whether I am affected?

Run `phpwarden deps composer.lock`. phpwarden checks the exact version you have installed against this advisory.

Am I affected?

Find out in one command. phpwarden checks your composer.lock against this advisory and 21,000+ others, ranked by real-world exploitation (CISA KEV + EPSS). Free, offline, open data.

# PHP projects (recommended)
composer require --dev phpwarden/phpwarden
# then
vendor/bin/phpwarden deps composer.lock

# or, without Composer
pipx install phpwarden   &&   phpwarden deps composer.lock

Or keep it checked automatically: GitHub Action · pre-commit hook · GitLab CI · Laravel artisan command

Install docs   How findings are ranked

Related advisories