Yii 2: Local file inclusion via view parameter name collision
Description
Published to the GitHub Advisory Database
May 11, 2026
Reviewed
May 11, 2026
Published by the National Vulnerability Database
May 20, 2026
Last updated
Jun 8, 2026
The core view rendering method
View::renderPhpFile()callsextract($_params_, EXTR_OVERWRITE)before therequirestatement that includes the view file. A caller-controlled parameter named_file_in the$paramsarray overwrites the internal local variable that specifies which file is included — enabling a Local File Inclusion primitive.Impact
Patches
2.0.55
Workarounds
No.
References