# CVE-2020-15148: Unsafe deserialization in Yii 2

- Severity: High 8.9 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 77.5%, higher than 99% of CVEs (2026-12-01)
- Published: 2020-09-15T18:19:56.000Z
- Modified: 2026-07-08T05:59:36.206Z
- Also known as: GHSA-699q-wcff-g9mj
- Weaknesses: CWE-502
- Assigned by: GitHub_M

## Description

Yii 2 (yiisoft/yii2) before version 2.0.38 is vulnerable to remote code execution if the application calls `unserialize()` on arbitrary user input. This is fixed in version 2.0.38. A possible workaround without upgrading is available in the linked advisory.

(As written by CVE List.)

## Affected

- yiisoft yii2: < 2.0.38
- yiisoft/yii2 (Packagist): before 2.0.38
- yiiframework yii: before 2.0.38

## Every score

- GitHub_M: CVSS:3.1 8.9 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:H`
- GitHub: CVSS:3.1 8.9 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:H`
- NVD: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/yiisoft/yii2/security/advisories/GHSA-699q-wcff-g9mj> (mitigation, third-party-advisory, web)
- <https://github.com/yiisoft/yii2/commit/9abccb96d7c5ddb569f92d1a748f50ee9b3e2b99> (patch, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-15148> (advisory)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/yiisoft/yii2/CVE-2020-15148.yaml> (web)
- <https://www.yiiframework.com/news/303/yii-2-0-38> (web)

## Sources

- CVE List: [CVE-2020-15148](https://www.cve.org/CVERecord?id=CVE-2020-15148), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-699q-wcff-g9mj](https://github.com/advisories/GHSA-699q-wcff-g9mj), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2020-15148](https://nvd.nist.gov/vuln/detail/CVE-2020-15148), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-15148 · Whole record: https://cve.day/CVE-2020-15148.json · Rebuilt by cve.day 2026-11-25T22:57:54.718Z
