All reports
High

Unsafe deserialization in Yii 2

Affected versions

Affected versions
< 2.0.38
Fixed version
2.0.38

Exploitation

CVE-2020-15148

Probability of exploitation in the next 30 days: 77.54%

FIRST EPSS · 2026-11-23

Description

Impact

Remote code execution in case application calls unserialize() on user input containing specially crafted string.

Patches

2.0.38

Workarounds

Add the following to BatchQueryResult.php:

public function __sleep()
{
    throw new \BadMethodCallException('Cannot serialize '.__CLASS__);
}

public function __wakeup()
{
    throw new \BadMethodCallException('Cannot unserialize '.__CLASS__);
}
For more information

If you have any questions or comments about this advisory, contact us through security form.

Links

Credits

  • nt0xa