S4E just found a critical-severity finding from cve-2022-27924 scanner
PlatformPlansPartners
Resources
ToolsBlogDocs
Sign Up →
critical·Product Based Web Vulnerabilities·Updated Jul 22, 2025

CVE-2024-58136 Scanner

CVE-2024-58136 Scanner - Remote Code Execution vulnerability in Yii2 PHP Framework

Est. Time~10 seconds
Scan TypeSingle Scan
Targetsdomain, subdomain, ipv4
CostFree
3.1k
Times Used
continuous scan runs
5.8k
Continuously Checked
assets under CS
3
Vulnerabilities Found
confirmed findings
References
🔴
CISA Known Exploited Vulnerability
This CVE is actively exploited in the wild. CISA mandates federal agencies to patch immediately.
CVECVE-2024-58136
9.0
CVSScritical
Exploitable remotely over the internet · no authentication required.

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.

Attack Vector
Network
Privileges Req.
None
User Interaction
None
Affected
Yiiby yiiframework
AFFECTED< 2.0.52SAFE ✓≥ 2.0.52
Updated Sep 10, 2026View on NVD →
Detail

The Yii2 PHP Framework is a popular open-source software framework used for developing web applications with PHP. It is widely adopted by developers looking for a high-performance PHP framework that supports rapid development. Designed to streamline complex tasks in extensive web applications, this framework offers powerful tools for developing full-featured websites. Often utilized by businesses from startups to large enterprises, Yii2 is preferred for its sophisticated caching, testing, and debugging capabilities. However, like any widely-used software, it requires continuous updates and security patches to ensure its components remain secure from emerging threats.

The vulnerability present in the Yii2 PHP Framework before version 2.0.52 allows for remote code execution. This creates a significant risk as attackers can exploit the improper validation of the __class key in JSON behaviors. By manipulating this functionality, an attacker may instantiate arbitrary PHP classes, leading to the execution of unauthorized code. This type of vulnerability undermines application security, potentially leading to severe breaches.

Technically, this vulnerability exists due to insufficient input validation in specific JSON behaviors within the framework. The use of the "__class" key to manipulate class instantiation without proper security checks is the root cause. Furthermore, utilizing functions like "system" within unauthorized contexts allows malicious actors to execute commands remotely. These vulnerabilities often occur when code fails to enforce strict type and input validation mechanisms, allowing hostile code to propagate undesirably.

If exploited, this vulnerability can lead to unauthorized execution of code, potentially resulting in full system compromise. An attacker could execute arbitrary commands on the server, modify data, or pivot to deeper parts of the network. This could result in data breaches, service disruptions, or complete system control by malicious entities, severely impacting the integrity, availability, and confidentiality of the affected application.

REFERENCES

Solution Advice
  • Upgrade to Yii2 PHP Framework version 2.0.52 or later to mitigate this vulnerability.
  • Regularly audit and refactor code to follow secure coding practices, particularly in input validation.
  • Implement strict Content Security Policies to limit potential code execution.
  • Use Web Application Firewalls to detect and prevent attempts to exploit known vulnerabilities.
  • Conduct routine security assessments to identify and address vulnerabilities promptly.

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

11,000+ scanners. Free to start. No credit card required.

CVE-2024-58136 Scanner - Remote Code Execution vulnerability in Yii2 PHP Framework | S4E