Advisory

GHSA-5vpg-rj7q-qpw2

Also known as: CVE-2026-39850

Summary

Yii 2: Local file inclusion via view parameter name collision

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-05-11 19:34 UTC
Modified
2026-09-10 03:51 UTC

Affected packages and fixes

yiisoft/yii2

Packagist · All systems

Affected

  • introduced 0, fixed 2.0.55 (ecosystem)

Fixed versions

2.0.55

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences