Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify Yii2 app passing user-controlled param keys into view render
-
DeliverySend request with `_file_` parameter pointing to target path
-
Exploitextract(EXTR_OVERWRITE) overwrites internal $_file_ variable
-
Executionrequire includes attacker-specified file
-
ImpactRead sensitive file contents or execute includable PHP
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
|
| Exploitation Conditions | Exploitation requires that the target application passes an array whose KEYS are attacker-influenced into |
| Impact | The signals are internally consistent and point to a real-but-conditional issue rather than a mass-exploitation event. CVSS 3.1 is 7.4 (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N): network-reachable and unauthenticated, but AC:H reflects that exploitation depends on an application passing attacker-controlled parameter *keys* into a view's render params - not the default coding pattern. EPSS is very low (0.05%, 14th percentile) and CISA SSVC reports Exploitation: none and Automatable: no, while rating Technical Impact: total. There is no KEV listing and no public PoC. One point of tension: CVSS assigns I:H, but the directly-guaranteed primitive is arbitrary file *read* (C:H); integrity/RCE is contingent on a separate primitive to place or reach an includable PHP file, so the integrity impact is more conditional than the vector implies - verify against your application's parameter-flow before treating this as full RCE. Net: prioritize patching for Yii2-based apps, but this is a low-automatability, condition-dependent flaw, not an internet-wide worm risk. |
| Exploit ScenarioDerived | An application built on Yii2 forwards request data (e.g., a merged query/body array) directly into a view's render parameters. An unauthenticated attacker sends a request containing a parameter keyed |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 23, 2026
Local File Inclusion in the Yii2 PHP framework (all versions before 2.0.55) allows remote attackers to read arbitrary local files by supplying a request parameter named _file_ that collides with an internal variable in View::renderPhpFile() and ErrorHandler::renderFile(). Because the render routine runs extract($_params_, EXTR_OVERWRITE) before require $_file_, an attacker-controlled _file_ key overwrites the path of the file to be included, yielding arbitrary file read and, if a PHP file is includable, potential code execution. No public exploit identified at time of analysis; EPSS is very low (0.05%, 14th percentile) and CISA SSVC records no observed exploitation, though the technical impact is rated total.
RemediationAI
Vendor-released patch: 2.0.55 - upgrade via composer require yiisoft/yii2:^2.0.55 (or composer update yiisoft/yii2) to the fixed release at https://github.com/yiisoft/yii2/releases/tag/2.0.55; the code fix is commit https://github.com/yiisoft/yii2/commit/109878b491dbffa541032bc99fb5e26d12cd0375. The vendor explicitly states there are no supported workarounds, so patching is the required action. As an interim compensating control until you can upgrade, audit application code that calls render/renderFile/renderPhpFile and ensure no user-supplied array keys ever reach the $params argument - specifically strip or whitelist parameter names and reject or unset any incoming key named _file_ (and _params_) before passing data to view rendering; the trade-off is that this is application-specific and easy to miss across a large codebase, which is why the upstream scope-isolation fix is preferred. Refer to the advisory at https://github.com/yiisoft/yii2/security/advisories/GHSA-5vpg-rj7q-qpw2 for details.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Yii2 is a mature, widely-used PHP MVC web framework (package pkg:composer/yiisoft/yii2). The flaw is a variable/parameter name-collision in the view layer: PHP's extract() with the EXTR_OVERWRITE flag imports every key of the caller-supplied $_params_ array into the current local scope, overwriting existing locals. Since the internal local variable holding the include target is literally named $_file_, any params entry keyed _file_ (and in the ErrorHandler path, _file_ resolved via Yii::getAlias()) silently replaces the intended view path before require executes. This maps to CWE-20 (Improper Input Validation) - the framework trusts caller-provided parameter names without isolating internal control variables. The upstream fix (commit 109878b) wraps the extract+require in a closure invoked via call_user_func_array, so func_get_arg(0)/func_get_arg(1) hold the file path and params in an isolated scope that user keys can no longer overwrite; the same hardening is applied to both View.php and web/ErrorHandler.php, with regression tests asserting a _file_ param cannot override the rendered file.
Know when PHP gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Network-reachable and unauthenticated (AV:N/PR:N) but depends on a non-default app pattern passing user-controlled param keys (AC:H); guaranteed impact is arbitrary file read (C:H), with only conditional integrity impact via includable PHP (I:L).
Primary rating from Vendor (https://github.com/yiisoft/yii2).
CVSS VectorVendor: https://github.com/yiisoft/yii2
DescriptionCVE.org
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.
Executive ViewAI
The Yii2 PHP framework versions prior to 2.0.55 contain a Local File Inclusion vulnerability that allows remote attackers to read arbitrary files on web servers, with potential for code execution if PHP files are accessible. This exposes sensitive configuration data, database credentials, and source code stored on affected systems. Organizations running Yii2-based applications require immediate patching to prevent unauthorized data access and potential system compromise.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
EUVD-2026-31190
GHSA-5vpg-rj7q-qpw2
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB