# CVE-2026-39850: Yii 2: Local file inclusion via view parameter name collision

- Severity: High 7.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- 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): 0.46%, higher than 41% of CVEs (2026-12-01)
- Published: 2026-05-11T19:34:28.000Z
- Modified: 2026-09-10T03:51:04.769Z
- Also known as: GHSA-5vpg-rj7q-qpw2
- Weaknesses: CWE-20, CWE-98
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

Yii 2 is a PHP application framework. Versions 2.0.54 and prior contain flawed logic in the core view rendering method View::renderPhpFile() that leads to Local File Inclusion. The function calls extract($_params_, EXTR_OVERWRITE) before the require statement that loads the view file. As a result, a caller-controlled _file_ key in the $params array overwrites the internal local variable specifying which file to include, potentially enabling RCE if an attacker can write PHP files through a separate primitive, as well as information disclosure. This issue has been fixed in version 2.0.55.

(As written by CVE List.)

## Affected

- yiisoft yii2: < 2.0.55
- yiisoft/yii2 (Packagist): before 2.0.55

## Every score

- GitHub_M: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://github.com/yiisoft/yii2/security/advisories/GHSA-5vpg-rj7q-qpw2> (web)
- <https://github.com/yiisoft/yii2/commit/109878b491dbffa541032bc99fb5e26d12cd0375> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-39850> (advisory)
- <https://github.com/yiisoft/yii2> (package)
- <https://github.com/yiisoft/yii2/releases/tag/2.0.55> (web)

## Sources

- CVE List: [CVE-2026-39850](https://www.cve.org/CVERecord?id=CVE-2026-39850), CVE Terms of Use, modified 2026-05-21
- GitHub Advisory Database: [GHSA-5vpg-rj7q-qpw2](https://github.com/advisories/GHSA-5vpg-rj7q-qpw2), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-39850](https://nvd.nist.gov/vuln/detail/CVE-2026-39850), Public domain, modified 2026-07-23

---

Page: https://cve.day/CVE-2026-39850 · Whole record: https://cve.day/CVE-2026-39850.json · Rebuilt by cve.day 2026-11-25T22:59:22.065Z
