CVE-2015-5467: Yiisoft/yii2 Yii2 Allows Attackers To Execute Vulnerability
CRITICALCVE-2015-5467 is a CRITICAL (CVSS 9.8) yii2 allows attackers to execute vulnerability (CWE-98: Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion')) affecting Yiisoft/yii2 libraries in the Packagist ecosystem. The issue involves yii2 allows attackers to execute any local .php file via a relative path in the view parameter. Remediation is available by upgrading affected packages to version 2.0.5.
CVE-2015-5467 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2015-5467
To remediate this vulnerability, upgrade all affected Yiisoft/yii2 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade yiisoft/yii2 to 2.0.5
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for yiisoft/yii2
How to Check if You Are Affected
To determine whether your application is affected by CVE-2015-5467, inspect your project dependencies for Yiisoft/yii2:
inspect dependencies for yiisoft/yii2
Analyze the terminal output to locate any version of Yiisoft/yii2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.5), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-98: Improper Control of Filename for Include/Require Statement in PHP Program ('PHP Remote File Inclusion'), where the php application receives input from an upstream component, but it does not restrict or incorrectly restricts the input before its usage in "require," "include," or similar functions. In Yiisoft/yii2, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2015-5467 Affected Yiisoft/yii2 Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
yiisoft/yii2
|
Packagist |
≥ 2.0.0
< 2.0.5
|
2.0.5
|
References
Frequently Asked Questions
What is CVE-2015-5467?
Which Yiisoft/yii2 versions are affected?
What version fixes CVE-2015-5467?
Is yiisoft/yii2 affected?
What is the CVSS score of CVE-2015-5467?
What CWE is associated with CVE-2015-5467?
How can I check Packagist dependencies for CVE-2015-5467?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-7cfq-72w2-24q4",
"modified" : "2023-09-25T13:55:19Z",
"published" : "2023-09-21T06:30:25Z",
"aliases" : [ "CVE-2015-5467" ],
"summary" : "Yii2 allows attackers to execute any local .php file via a relative path in the view parameter",
"details" : "web\\ViewAction in Yii (aka Yii2) 2.x before 2.0.5 allows attackers to execute any local .php file via a relative path in the view parameeter.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "yiisoft/yii2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.0.5"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-5467"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/yiisoft/yii2-dev/CVE-2015-5467.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/yiisoft/yii2/CVE-2015-5467.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/yiisoft/yii2-framework"
}, {
"type" : "WEB",
"url" : "https://www.yiiframework.com/news/87/yii-2-0-5-is-released-security-fix"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-22", "CWE-98" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2023-09-21T16:55:31Z",
"nvd_published_at" : "2023-09-21T06:15:10Z"
}
}