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

Thu, 21 May 2026 14:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Thu, 21 May 2026 08:45:00 +0000

Type Values Removed Values Added
First Time appeared Yiisoft
Yiisoft yii2
Vendors & Products Yiisoft
Yiisoft yii2

Wed, 20 May 2026 20:15:00 +0000

Type Values Removed Values Added
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.
Title Yii 2: Local file inclusion via view parameter name collision
Weaknesses CWE-20
CWE-98
References
Metrics cvssV3_1

{'score': 7.4, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published: 2026-05-20T19:51:03.769Z

Updated: 2026-05-21T13:03:41.018Z

Reserved: 2026-04-07T19:13:20.378Z

Link: CVE-2026-39850

cve-icon Vulnrichment

Updated: 2026-05-21T13:03:37.726Z

cve-icon NVD

Status : Deferred

Published: 2026-05-20T20:16:39.850

Modified: 2026-05-21T15:24:25.330

Link: CVE-2026-39850

cve-icon Redhat

No data.