Skip to main content

CVE-2024-58136 — Vulnerability in yiisoft/yii2 — CVE Details

CRITICAL
Actively Exploited

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

Published April 10, 2025Updated October 22, 2025Source: OSV

What Should I Do?

Patch Immediately

This vulnerability is confirmed under active exploitation (CISA KEV). Patch within 24-48 hours if possible.

Does your project use an affected yiisoft/yii2 version?

Paste your composer.lock to check it for CVE-2024-58136 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my composer.lock

Summary

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.

Advisory Timeline

  • First published April 10, 2025 (595 days ago).
  • Last revised October 22, 2025 — 196 days after initial publication.
  • Added to CISA's Known Exploited Vulnerabilities catalog 22 days after publication.

Remediation

Upgrade to the fixed version using your package manager.

Composer
Update yiisoft/yii2 to 2.0.52 or later
composer require "yiisoft/yii2:^2.0.52"

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: Packagist (1).

PackageFixed In
yiisoft/yii2 Packagist · Affected: 2.0.0, 2.0.0-alpha, 2.0.0-beta, 2.0.0-rc (+72 more)2.0.52

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.0 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

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

Frequently Asked Questions

What is CVE-2024-58136?
yiisoft/yii2 Mishandles the Attaching of Behavior Defined by a `__class` Array Key. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.0/10).
How do I check if my project is affected by CVE-2024-58136?
CVE-2024-58136 affects yiisoft/yii2. It has a 25.3% probability of exploitation within 30 days (EPSS score). This vulnerability is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, meaning it is being actively exploited in the wild. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-58136 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
9.0

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
25.32%
EPSS percentile: 98.4

This places it in the top 5% of EPSS-scored vulnerabilities — 98.4% of tracked vulnerabilities score at or below it, so it is far more likely to be exploited than nearly all other tracked vulnerabilities.

Known Exploited Vulnerability

This vulnerability is in CISA's Known Exploited Vulnerabilities (KEV) catalog, indicating active exploitation in the wild.

Added to KEV catalog: May 2, 2025

Remediation deadline: May 23, 2025

Also Known As

GHSA-ggwg-cmwp-46r5

Related CVEs

  • CVE-2015-5467
    CRITICAL

    Yii2 allows attackers to execute any local .php file via a relative path in the view parameter

  • CVE-2026-63412
    CRITICAL

    Jane: Instantiation RCE via query parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)

  • CVE-2026-63413
    CRITICAL

    Jane: Instantiation RCE via header parameter name -> raw PHPDoc */ breakout (jane-php/open-api-3)

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my composer.lock