NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Composer (PHP)

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

highCVSS 3.1 7.4GHSA-5vpg-rj7q-qpw2

The core view rendering method View::renderPhpFile() calls extract($params, EXTROVERWRITE) before the require statement that includes the view file. A caller-controlled parameter named file in the $params array overwrites the internal local variable that specifies which file is included — enabling a Local File Inclusion primitive.

Published May 11, 2026 · Updated Jun 8, 2026

Affected packages

yiisoft/yii2

Ecosystem
Composer (PHP)
Affected
< 2.0.55
Fixed in
2.0.55
Check
composer show yiisoft/yii2

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

The core view rendering method View::renderPhpFile() calls extract($_params_, EXTR_OVERWRITE) before the require statement that includes the view file. A caller-controlled parameter named _file_ in the $params array overwrites the internal local variable that specifies which file is included — enabling a Local File Inclusion primitive.

Impact

  • Local File Inclusion (arbitrary file read via non-PHP files)
  • Potential RCE if attacker can write PHP files via a separate primitive
  • Information disclosure

Patches

2.0.55

Workarounds

No.

Credited to khuroohamid.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Composer (PHP) vulnerabilities

All Composer (PHP) entries