原始 OSV JSON{
"id": "GHSA-699q-wcff-g9mj",
"aliases": [
"CVE-2020-15148"
],
"details": "### Impact\n\nRemote code execution in case application calls `unserialize()` on user input containing specially crafted string.\n\n### Patches\n\n2.0.38\n\n### Workarounds\n\nAdd the following to BatchQueryResult.php:\n\n```php\npublic function __sleep()\n{\n throw new \\BadMethodCallException('Cannot serialize '.__CLASS__);\n}\n\npublic function __wakeup()\n{\n throw new \\BadMethodCallException('Cannot unserialize '.__CLASS__);\n}\n```\n\n### For more information\n\nIf you have any questions or comments about this advisory, [contact us through security form](https://www.yiiframework.com/security).",
"summary": "Unsafe deserialization in Yii 2",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "2.0.38"
}
]
}
],
"package": {
"name": "yiisoft/yii2",
"ecosystem": "Packagist"
}
}
],
"modified": "2021-01-07T22:56:34Z",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:H"
}
],
"published": "2020-09-15T18:19:56Z",
"references": [
{
"url": "https://github.com/yiisoft/yii2/security/advisories/GHSA-699q-wcff-g9mj",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2020-15148",
"type": "ADVISORY"
},
{
"url": "https://github.com/yiisoft/yii2/commit/9abccb96d7c5ddb569f92d1a748f50ee9b3e2b99",
"type": "WEB"
},
{
"url": "https://github.com/FriendsOfPHP/security-advisories/blob/master/yiisoft/yii2/CVE-2020-15148.yaml",
"type": "WEB"
},
{
"url": "https://www.yiiframework.com/news/303/yii-2-0-38",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-502"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": null,
"github_reviewed_at": "2020-09-15T18:19:44Z"
}
}