PHP Remote File Inclusion Affecting yiisoft/yii2 package, versions <2.0.55


Severity

Recommended
0.0
critical
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.02% (7th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-PHP-YIISOFTYII2-16642098
  • published12 May 2026
  • disclosed11 May 2026
  • creditkhuroohamid

Introduced: 11 May 2026

NewCVE-2026-39850  (opens in a new tab)
CWE-98  (opens in a new tab)

How to fix?

Upgrade yiisoft/yii2 to version 2.0.55 or higher.

Overview

yiisoft/yii2 is a Yii PHP Framework.

Affected versions of this package are vulnerable to PHP Remote File Inclusion via the View::renderPhpFile process. An attacker can access arbitrary files or potentially execute code by supplying a specially crafted _file_ parameter in the $params array, which overwrites the intended file path during view rendering.

CVSS Base Scores

version 4.0
version 3.1