Skip to main content

Yii2 EUVDEUVD-2026-31190

| CVE-2026-39850 HIGH
Improper Input Validation (CWE-20)
2026-05-11 https://github.com/yiisoft/yii2 GHSA-5vpg-rj7q-qpw2
7.4
CVSS 3.1 · Vendor: https://github.com/yiisoft/yii2
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify Yii2 app passing user-controlled param keys into view render
  2. Delivery
    Send request with `_file_` parameter pointing to target path
  3. Exploit
    extract(EXTR_OVERWRITE) overwrites internal $_file_ variable
  4. Execution
    require includes attacker-specified file
  5. Impact
    Read 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 View::render*/ErrorHandler::renderFile() - i.e., user input is used to build the $params array names, not just values, allowing an incoming _file_ key to reach extract($_params_, EXTR_OVERWRITE). The exact prerequisite is a caller-controlled parameter literally named _file_ in the render params. Limiting factors: this is a non-default application coding pattern (reflected as CVSS AC:H), so stock Yii2 apps that pass fixed, developer-defined param keys are not exploitable; the reliably-achievable outcome is arbitrary read of non-PHP files (information disclosure), while RCE additionally requires a separate primitive to write or reference an includable PHP file. No authentication is inherently required (PR:N) and no user interaction is needed (UI:N).

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 _file_ set to a sensitive path such as /etc/passwd or an application config file; extract() overwrites the internal include target and require returns that file's contents in the response. No public PoC is identified, but if the attacker can also drop or reference an existing PHP file on disk, the same primitive escalates to code execution.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

yii2 < 2.0.55

Affected Packages

composer yiisoft/yii2 fix: 2.0.55
euvd yii2 fix: 2.0.55

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

Vendor (https://github.com/yiisoft/yii2) PRIMARY 7.4 HIGH
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
vuln.today AI 6.5 MEDIUM

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).

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/yiisoft/yii2).

CVSS VectorVendor: https://github.com/yiisoft/yii2

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
None

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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 86% exploitable
Prevalence
High
Yii2 is a widely-deployed mainstream PHP web framework
Threat Intel
1
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

37
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +37
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

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

CVE-2012-1823 CRITICAL POC
9.8 May 11

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

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

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

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

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

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy