{"id":"CVE-2026-39850","aliases":["CVE-2026-39850","GHSA-5vpg-rj7q-qpw2"],"related":[],"kind":"vulnerability","state":"published","title":"Yii 2: Local file inclusion via view parameter name collision","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"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.\n\n### Impact\n\n- Local File Inclusion (arbitrary file read via non-PHP files)\n- Potential RCE if attacker can write PHP files via a separate primitive\n- Information disclosure\n\n### Patches\n\n2.0.55\n\n### Workarounds\n\nNo.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Yii 2 es un framework de aplicación PHP. Las versiones 2.0.54 y anteriores contienen lógica defectuosa en el método central de renderizado de vistas View::renderPhpFile() que conduce a una inclusión local de ficheros. La función llama a extract($_params_, EXTR_OVERWRITE) antes de la sentencia require que carga el fichero de vista. Como resultado, una clave _file_ controlada por el llamador en el array $params sobrescribe la variable local interna que especifica qué fichero incluir, lo que podría habilitar RCE si un atacante puede escribir ficheros PHP a través de una primitiva separada, así como revelación de información. Este problema ha sido corregido en la versión 2.0.55.","source":"nvd"}],"published":"2026-05-11T19:34:28.000Z","modified":"2026-09-10T03:51:04.769Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","score":7.4,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","score":7.4,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","score":7.4,"rating":"HIGH"}],"cwes":["CWE-20","CWE-98"],"affected":[{"ranges":[{"version":"< 2.0.55","status":"affected"}],"vendor":"yiisoft","product":"yii2","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.0.55"}],"ecosystem":"Packagist","package":"yiisoft/yii2","purl":"pkg:composer/yiisoft/yii2","source":"ghsa"}],"references":[{"url":"https://github.com/yiisoft/yii2/security/advisories/GHSA-5vpg-rj7q-qpw2","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/yiisoft/yii2/commit/109878b491dbffa541032bc99fb5e26d12cd0375","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39850","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/yiisoft/yii2","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/yiisoft/yii2/releases/tag/2.0.55","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-05-21T03:55:53.898Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-39850","url":"https://www.cve.org/CVERecord?id=CVE-2026-39850","licence":"CVE Terms of Use","modified":"2026-05-21T13:03:41.018Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5vpg-rj7q-qpw2","url":"https://github.com/advisories/GHSA-5vpg-rj7q-qpw2","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:04.769Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-39850","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39850","licence":"Public domain","modified":"2026-07-23T12:10:00.110Z"}],"updatedAt":"2026-11-25T22:59:22.065Z","epss":{"score":0.00455,"percentile":0.41208,"date":"2026-12-01T12:00:22.000Z"}}