GitHub Advisoryadvisory · Packagist

GHSA-699q-wcff-g9mj Unsafe deserialization in Yii 2

HIGH Published 2020-09-15 Modified 2021-01-07 Official page ↗
Aliases
CVE-2020-15148
Ecosystem
Packagist
Packages
yiisoft/yii2
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:H
Weaknesses
CWE-502
Reviewed
2020-09-15

Affected packages

• Packagist yiisoft/yii2: < 2.0.38 → fixed in 2.0.38

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: ```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.

Related

Alias · CVE (1)

  • CVE-2020-15148 Yii 2 (yiisoft/yii2) before version 2.0.38 is vulnerable to remote code execution if the application calls `unserialize()` on arbitrary… vulnerability

Weakness · CWE (1)

  • CWE-502 Deserialization of Untrusted Data weakness

References