CVE-2024-58136: Yii 2 - Insecure Deserialization
- Cve: CVE-2024-58136
- Name: Yii 2 - Insecure Deserialization
- 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.
- Impact: Attackers can exploit this to execute arbitrary code or cause application instability, leading to potential remote code execution or denial of service.
- Remediation: Update to Yii 2.0.52 or later.
- Vulnerability type: insecure_deserialization
- Vulnerability impact: remote_code_execution, denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: critical
- Cvss score: 9.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.87757
- Epss percentile: 0.99765
- Assignee: [email protected]
- Published at: 2025-04-10T03:15:17Z
- Age in days: 593
- Modified at: 2026-06-17T08:14:41Z
- Patch available: yes
- Public exploits total: 1
- References total: 15
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-58136
- Nvd status: analyzed
- Checked, none or zero: public exploits capped, rejected by nvd
- Not known: requirements
Cwe
| Id | Name |
|---|---|
| CWE-424 | Improper Protection of Alternate Path |
| NVD-CWE-Other | — |
Known exploited entries
| List | Added date | Due date | Ransomware use |
|---|---|---|---|
| cisa | 2025-05-02 | 2025-05-23 | no |
| vulncheck | 2025-04-09 | — | no |
Nuclei templates
| Id | Url |
|---|---|
| CVE-2024-58136 | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-58136.yaml |
Hackerone
- Reports: 1
- Rank: 2839
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://sensepost.com/blog/2025/investigating-an-in-the-wild-campaign-using-rce-in-craftcms/ | nvd | 2025-04-10 |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/yiisoft/yii2/commit/40fe496eda529fd1d933b56a1022ec32d3cd0b12 | nvd | Patch |
| https://github.com/yiisoft/yii2/pull/20232 | nvd | Patch |
| https://www.yiiframework.com/news/709/please-upgrade-to-yii-2-0-52 | nvd | Vendor Advisory |
| https://github.com/yiisoft/yii2/compare/2.0.51...2.0.52 | nvd | Issue Tracking |
| https://github.com/yiisoft/yii2/pull/20232#issuecomment-2252459709 | nvd | Issue Tracking |
| https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-58136 | nvd | US Government Resource |
| https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-58136.yaml | nuclei_template | Nuclei Template |
| https://sensepost.com/blog/2025/investigating-an-in-the-wild-campaign-using-rce-in-craftcms/ | vulncheck | Vulncheck Reported Exploitation |
| https://www.loginsoft.com/reports/annually/vulnerability-intelligence-report-2025 | vulncheck | Vulncheck Reported Exploitation |
| https://cyble.com/resources/research-reports/global-cybersecurity-report/ | vulncheck | Vulncheck Reported Exploitation |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| yiiframework:yii | < 2.0.52 | no | nvd | /v1/products/yiiframework/yii |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| yiisoft/yii2 | commit, compare, fix, package, pull | yes | /v1/repositories/yiisoft/yii2 |
Index
- Repositories: 34
- Repositories high signal: 16
- Packages: 1
Exploitation
- Known exploited: yes
- Known exploited since: 2025-05-02
- Known exploited by: cisa, vulncheck
- Vulncheck known exploited since: 2025-04-09
- Exploitation seen: yes
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2025-04-10
- Remote: yes
- Hackerone reports: 1
- Checked, none or zero: initial access, authentication required
- Not known: initial access since, exposed hosts