Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. yiisoft/yii2
  4. ›
  5. CVE-2026-39850

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

May 11, 2026 (updated June 8, 2026)

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.

References

  • github.com/advisories/GHSA-5vpg-rj7q-qpw2
  • github.com/yiisoft/yii2/commit/109878b491dbffa541032bc99fb5e26d12cd0375
  • github.com/yiisoft/yii2/releases/tag/2.0.55
  • github.com/yiisoft/yii2/security/advisories/GHSA-5vpg-rj7q-qpw2
  • nvd.nist.gov/vuln/detail/CVE-2026-39850

Code Behaviors & Features

Detect and mitigate CVE-2026-39850 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 2.0.55

Fixed versions

  • 2.0.55

Solution

Upgrade to version 2.0.55 or above.

Impact 7.4 HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-20: Improper Input Validation
  • CWE-98: Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')

Source file

packagist/yiisoft/yii2/CVE-2026-39850.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:27 +0000.