Remote code execution in Yii framework



Risk Critical
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2024-58136
CWE-ID CWE-424
Exploitation vector Network
Public exploit This vulnerability is being exploited in the wild.
Vulnerable software
Yii
Web applications / CMS

Vendor Yii Software

Security Bulletin

This security bulletin contains one critical risk vulnerability.

1) Improper protection of alternate path

EUVDB-ID: #VU107992

Risk: Critical

CVSSv4.0: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:A/U:Red]

CVE-ID: CVE-2024-58136

CWE-ID: CWE-424 - Improper Protection of Alternate Path

Exploit availability: No

Description

The vulnerability allows a remote attacker to compromise the affected system.

The vulnerability exists due to improper protection of alternate path in framework/base/Component.php. A remote non-authenticated attacker can send a specially crafted request to the application and execute arbitrary code on the system.

Note, the vulnerability is being actively exploited in the wild since February 2025.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

Yii: 1.0.0 - 2.0.51

CPE2.3 External links

https://github.com/yiisoft/yii2/commit/40fe496eda529fd1d933b56a1022ec32d3cd0b12
https://github.com/yiisoft/yii2/compare/2.0.51...2.0.52
https://github.com/yiisoft/yii2/pull/20232
https://github.com/yiisoft/yii2/pull/20232#issuecomment-2252459709
https://www.yiiframework.com/news/709/please-upgrade-to-yii-2-0-52


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

Yes. This vulnerability is being exploited in the wild.



###SIDEBAR###