Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-39850: CWE-20: Improper Input Validation in yiisoft yii2

0
High
VulnerabilityCVE-2026-39850cvecve-2026-39850cwe-20cwe-98
Published: Wed May 20 2026 (05/20/2026, 19:51:03 UTC)
Source: CVE Database V5
Vendor/Project: yiisoft
Product: yii2

Description

Yii 2 is a PHP application framework. Versions 2.0.54 and prior contain flawed logic in the core view rendering method View::renderPhpFile() that leads to Local File Inclusion. The function calls extract($_params_, EXTR_OVERWRITE) before the require statement that loads the view file. As a result, a caller-controlled _file_ key in the $params array overwrites the internal local variable specifying which file to include, potentially enabling RCE if an attacker can write PHP files through a separate primitive, as well as information disclosure. This issue has been fixed in version 2.0.55.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 05/20/2026, 20:34:03 UTC

Technical Analysis

CVE-2026-39850 is an improper input validation vulnerability in the Yii 2 PHP framework (versions prior to 2.0.55). The flaw exists in the View::renderPhpFile() method, where extract($_params_, EXTR_OVERWRITE) is called before requiring the view file. This allows an attacker to control the '_file_' variable via the $params array, causing the application to include arbitrary local files. This can lead to local file inclusion and, if combined with a separate file write vulnerability, remote code execution. The vulnerability is addressed in Yii 2 version 2.0.55.

Potential Impact

Successful exploitation can lead to local file inclusion, which may disclose sensitive information. If an attacker can write PHP files through another vulnerability, this flaw could enable remote code execution. The CVSS score of 7.4 reflects high impact on confidentiality and integrity, with no impact on availability.

Mitigation Recommendations

This vulnerability is fixed in Yii 2 version 2.0.55. Users should upgrade to version 2.0.55 or later to remediate the issue. Since no official patch link or vendor advisory was provided, verify the upgrade from the official Yii framework sources. There is no indication that this is a cloud service; thus, remediation depends on user action to upgrade.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-04-07T19:13:20.378Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a0e173eba1db47362a37eac

Added to database: 5/20/2026, 8:19:10 PM

Last enriched: 5/20/2026, 8:34:03 PM

Last updated: 5/21/2026, 3:21:28 PM

Views: 12

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses