ghsa-699q-wcff-g9mj
Vulnerability from github
Published
2020-09-15 18:19
Modified
2021-01-07 22:56
Severity ?
VLAI Severity ?
Summary
Unsafe deserialization in Yii 2
Details
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.
{ "affected": [ { "package": { "ecosystem": "Packagist", "name": "yiisoft/yii2" }, "ranges": [ { "events": [ { "introduced": "0" }, { "fixed": "2.0.38" } ], "type": "ECOSYSTEM" } ] } ], "aliases": [ "CVE-2020-15148" ], "database_specific": { "cwe_ids": [ "CWE-502" ], "github_reviewed": true, "github_reviewed_at": "2020-09-15T18:19:44Z", "nvd_published_at": null, "severity": "HIGH" }, "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(\u0027Cannot serialize \u0027.__CLASS__);\n}\n\npublic function __wakeup()\n{\n throw new \\BadMethodCallException(\u0027Cannot unserialize \u0027.__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).", "id": "GHSA-699q-wcff-g9mj", "modified": "2021-01-07T22:56:34Z", "published": "2020-09-15T18:19:56Z", "references": [ { "type": "WEB", "url": "https://github.com/yiisoft/yii2/security/advisories/GHSA-699q-wcff-g9mj" }, { "type": "ADVISORY", "url": "https://nvd.nist.gov/vuln/detail/CVE-2020-15148" }, { "type": "WEB", "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" } ], "schema_version": "1.4.0", "severity": [ { "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:H", "type": "CVSS_V3" } ], "summary": "Unsafe deserialization in Yii 2" }
Loading…
Loading…
Sightings
Author | Source | Type | Date |
---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
- Confirmed: The vulnerability is confirmed from an analyst perspective.
- Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
- Patched: This vulnerability was successfully patched by the user reporting the sighting.
- Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
- Not confirmed: The user expresses doubt about the veracity of the vulnerability.
- Not patched: This vulnerability was not successfully patched by the user reporting the sighting.
Loading…
Loading…