---
id: "CVE-2024-58136"
kind: "vulnerability"
aliases: ["CVE-2024-58136"]
title: "yiiframework yii: Yii 2 before 2.0.52 mishandles the attaching of behavior that is defined by an __class array key, a CVE-2024-4990\u2026"
severity: "critical"
cvss: 9.8
epss: null
exploited: true
status: "open"
category: "package"
products: [{"name": "yiiframework yii", "fixed": ["2.0.52"], "affected": "< 2.0.52", "ecosystem": "vendor"}, {"name": "Yiiframework Yii", "fixed": [], "affected": "", "ecosystem": "vendor"}]
ecosystems: ["vendor"]
tags: ["craft-cms", "exploited", "package", "php", "yii"]
not_affected_if: ["unknown"]
published_at: "2025-04-10T03:15:17+00:00"
first_seen_at: "2026-10-23T19:11:51+00:00"
updated_at: "2026-10-24T00:09:50+00:00"
sources: [{"source": "kev", "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2024-58136", "first_seen_at": "2026-10-23T19:11:51+00:00"}, {"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-58136", "first_seen_at": "2026-10-23T22:29:05+00:00"}]
---

# yiiframework yii: Yii 2 before 2.0.52 mishandles the attaching of behavior that is defined by an __class array key, a CVE-2024-4990…

Yii, a PHP web framework, contains a flaw that lets a remote attacker run arbitrary code on the server. CISA lists it as actively exploited, and the same flaw is said to affect other Yii-based products such as Craft CMS.

_Summary, check and fix written by a model from the sources; labelled as such._

## Affected

- vendor:yiiframework yii affected < 2.0.52 fixed 2.0.52
- vendor:Yiiframework Yii affected ? fixed ?

## Fix

Apply the mitigations per vendor instructions, or discontinue use of the product if mitigations are unavailable (per CISA required action). Affected and fixed versions are unknown from the sources.

## Timeline

- 2026-10-23T19:11:51+00:00 kev https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2024-58136
- 2026-10-23T22:29:05+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2024-58136

## From the sources

Yii Framework contains an improper protection of alternate path vulnerability that may allow a remote attacker to execute arbitrary code. This vulnerability could affect other products that implement Yii, including—but not limited to—Craft CMS, as represented by CVE-2025-32432.

CISA required action: Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

---

_Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai_
