CVE-2020-15148
Unsafe deserialization in Yii 2
8.9
HIGH
CVSS 3.1
EPSS 78.8%
描述
### 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](https://www.yiiframework.com/security).
如何修補 CVE-2020-15148
要修補 CVE-2020-15148,請將受影響套件升級到下列已修補版本。
- —升級至 2.0.38 或更新版本
CVE-2020-15148 正在被利用嗎?
可能 — EPSS 為 78.8%,屬於高被利用機率區間,建議優先修補。
受影響套件(1)
- from 0, < 2.0.38
CVSS 分數
| 來源 | 版本 | 嚴重程度 | 向量 |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH8.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:H |