CVE-2026-39850

High

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.

SeverityHigh
CVSS7.4
Exploit probability—
ProductYiisoft/yii2
PublishedMay 20, 2026
First seenMay 20, 2026

How to fix

Update
  • yiisoft/yii22.0.55 or later

Affected products

ProductAffected versionsFixed in
yiisoft/yii2Packagistv < 2.0.552.0.55

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.