Loading advisory.
Loading advisory.
Unsafe deserialization in Yii 2
Remote code execution in case application calls unserialize() on user input containing specially crafted string.
Published 2020-09-15 18:19 UTC · Modified 2026-07-08 05:59 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| yiisoft/yii2 | Packagist | < 2.0.38 versions 2.0.0, 2.0.0-alpha, 2.0.0-beta, 2.0.0-rc, 2.0.1, 2.0.10, 2.0.11, 2.0.11.1, 2.0.11.2, 2.0.12, 2.0.12.1, 2.0.12.2, 2.0.13, 2.0.13.1, 2.0.13.2, 2.0.13.3, 2.0.14, 2.0.14.1, 2.0.14.2, 2.0.15 and 32 more | 2.0.38 | composer require 'yiisoft/yii2:>=2.0.38' |
Remote code execution in case application calls unserialize() on user input containing specially crafted string.
2.0.38
Add the following to BatchQueryResult.php:
public function __sleep()
{
throw new \BadMethodCallException('Cannot serialize '.__CLASS__);
}
public function __wakeup()
{
throw new \BadMethodCallException('Cannot unserialize '.__CLASS__);
}If you have any questions or comments about this advisory, contact us through security form.
Exploit code or a detection template for this CVE is published by the sources below. This is not a report of use against real systems (that is what CISA KEV records) and it does not change the tier.
One EPSS score on record: 0.775 on 2026-11-24.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.775 | first score | v2026.06.15 |