Lucene search

K
osvGoogleOSV:GHSA-699Q-WCFF-G9MJ
HistorySep 15, 2020 - 6:19 p.m.

Unsafe deserialization in Yii 2

2020-09-1518:19:56
Google
osv.dev
74

0.027 Low

EPSS

Percentile

90.6%

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.

0.027 Low

EPSS

Percentile

90.6%