BreachSpiderVerified, not vibes

CVE-2024-58136 in Yiiframework Yii

Known-exploited (CISA) since 2025-05-02 Critical 9.8 Fix available

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.

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.19.8
EPSS25.3%
EPSS percentile98th
FixAvailable

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Yiiframework Yii < 2.0.52

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Vendor PSIRT: [email protected]

Exploitation

CISA known-exploitedYes added 2025-05-02
Public exploitNot confirmed

Official description

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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2024-58136
BreachSpider IDBS-2025-GLOBAL-223655-C
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published2025-04-10
Last modified2025-11-05
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-424: CWE-424

Related attack patterns (CAPEC)

CAPEC-127 Directory Indexing via CWE-424

CAPEC-554 Functionality Bypass via CWE-424

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

CVE-2024-58136 affects Yii 2 versions before 2.0.52, leading to a critical vulnerability where behaviors defined by an __class array key are mishandled. This is a regression from CVE-2024-4990 and has been exploited in the wild. The CVSS score is 9.8, indicating a high severity with potential for remote code execution and data compromise.

The vulnerability allows an attacker to exploit a flaw in how Yii 2 handles the attachment of behaviors defined by an __class array key. This can lead to remote code execution, data manipulation, and system compromise. The attack vector is network-based, requiring no user interaction or privileges, making it highly exploitable in web applications using affected versions of Yii 2.

Compensating controls AI-drafted, review before use

Implement strict input validation and sanitization for all HTTP requests, especially those involving class definitions or behavior attachments. Consider using a Web Application Firewall (WAF) to filter out suspicious requests.

NERC CIP: CIP-007 CIP-007-R2

IEC 62443: SR 7.6

Not validated for your network. A compensating control does not replace the vendor fix.

Questions

What is CVE-2024-58136?

CVE-2024-58136 affects Yii 2 versions before 2.0.52, leading to a critical vulnerability where behaviors defined by an __class array key are mishandled. This is a regression from CVE-2024-4990 and has been exploited in the wild. The CVSS score is 9.8, indicating a high severity with potential for remote code execution and data compromise.

What is the CVSS score for CVE-2024-58136?

CVE-2024-58136 has CVSS 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H. EPSS: 25.3%.

Is CVE-2024-58136 actively exploited?

Yes. CVE-2024-58136 is in the CISA known-exploited catalog (added 2025-05-02). Active exploitation confirmed. Immediate patching required.

How do I remediate CVE-2024-58136?

Priority: IMMEDIATE. Advisory: https://www.yiiframework.com/news/709/please-upgrade-to-yii-2-0-52 PSIRT: [email protected]

What systems are affected by CVE-2024-58136?

CVE-2024-58136 affects Yiiframework Yii.

What NERC-CIP standard applies to CVE-2024-58136?

NERC CIP CIP-007 CIP-007-R2: This CVE violates CIP-007-R2 because it allows unauthorized access to electronic security perimeters, potentially leading to the compromise of critical systems and data.

What IEC 62443 requirement maps to CVE-2024-58136?

IEC 62443 SR 7.6: This CVE maps to SR 7.6 because it involves a vulnerability in the software that could allow an attacker to execute arbitrary code, which is a significant risk to the security of industrial control systems.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Yiiframework","product":"Yii","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2025-11-05.