PHP2Shell: Read our blog on the critical RCE vulnerabilities affecting 70% of the Internet

CVE-2020-15148: 
PHP vulnerability analysis and mitigation

Overview

Yii 2 (yiisoft/yii2) before version 2.0.38 was discovered to be vulnerable to remote code execution if the application calls unserialize() on arbitrary user input (MITRE CVE, GitHub Advisory). The vulnerability was disclosed on September 14, 2020 and was assigned CVE-2020-15148.

Technical details

The vulnerability exists in the BatchQueryResult class where unsafe deserialization of user input could occur. When an application calls unserialize() on user-controlled data containing specially crafted strings, it could lead to remote code execution (GitHub Advisory). The vulnerability received a high severity rating due to its potential impact.

Impact

If successfully exploited, this vulnerability could allow remote attackers to execute arbitrary code on the affected system when the application unsafely deserializes user input (FortiGuard). This could potentially lead to complete system compromise.

Exploitability

The vulnerability requires the application to call unserialize() on arbitrary user input. An attacker would need to craft a special serialized string that, when unserialized, could trigger code execution (GitHub Advisory).

Mitigation and workarounds

The vulnerability was patched in Yii 2 version 2.0.38. For users unable to upgrade immediately, a workaround is available by adding code to BatchQueryResult.php to prevent serialization and unserialization by implementing __sleep() and __wakeup() methods that throw exceptions (GitHub Advisory).

Additional resources


Source: This report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-3qcx-mjf6-48vjHIGHN/A
  • PHP logoPHP
  • craftcms/commerce-mollie
NoYesOct 23, 2026
GHSA-5v62-pcq7-fxj9LOWN/A
  • PHP logoPHP
  • craftcms/cms
NoYesOct 23, 2026
GHSA-hvp5-pwxx-2752LOWN/A
  • PHP logoPHP
  • craftcms/cms
NoYesOct 23, 2026
GHSA-mp59-9rf5-93wrMEDIUMN/A
  • PHP logoPHP
  • craftcms/cms
NoYesOct 23, 2026
GHSA-xpg7-m6gm-4xfhMEDIUMN/A
  • PHP logoPHP
  • craftcms/cms
NoYesOct 23, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management