GHSA-p76f-wr22-4rv6: Cakephp/cakephp CakePHP Vulnerable To Remote File Vulnerability
MODERATEGHSA-p76f-wr22-4rv6 is a MODERATE cakephp vulnerable to remote file vulnerability (General Security Weakness) affecting Cakephp/cakephp libraries in the Packagist ecosystem. The issue involves cakephp vulnerable to remote file inclusion through view template name manipulation. Remediation is available by upgrading affected packages to version 2.0.99, 2.1.99, 2.2.99, 2.3.99, 2.4.99, 2.5.99, 2.6.12, 2.7.6, 3.0.15, 3.1.4.
GHSA-p76f-wr22-4rv6 at a Glance
How to Fix GHSA-p76f-wr22-4rv6
To remediate this vulnerability, upgrade all affected Cakephp/cakephp 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 cakephp/cakephp to 2.0.99
Upgrade cakephp/cakephp to 2.1.99
Upgrade cakephp/cakephp to 2.2.99
Upgrade cakephp/cakephp to 2.3.99
Upgrade cakephp/cakephp to 2.4.99
Upgrade cakephp/cakephp to 2.5.99
Upgrade cakephp/cakephp to 2.6.12
Upgrade cakephp/cakephp to 2.7.6
Upgrade cakephp/cakephp to 3.0.15
Upgrade cakephp/cakephp to 3.1.4
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for cakephp/cakephp
How to Check if You Are Affected
To determine whether your application is affected by GHSA-p76f-wr22-4rv6, inspect your project dependencies for Cakephp/cakephp:
inspect dependencies for cakephp/cakephp
Analyze the terminal output to locate any version of Cakephp/cakephp in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.99), 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 General Security Weakness. In Cakephp/cakephp, 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
GHSA-p76f-wr22-4rv6 Affected Cakephp/cakephp Versions
10 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
cakephp/cakephp
|
Packagist |
≥ 2.0.0
< 2.0.99
|
2.0.99
|
|
cakephp/cakephp
|
Packagist |
≥ 2.1.0
< 2.1.99
|
2.1.99
|
|
cakephp/cakephp
|
Packagist |
≥ 2.2.0
< 2.2.99
|
2.2.99
|
|
cakephp/cakephp
|
Packagist |
≥ 2.3.0
< 2.3.99
|
2.3.99
|
|
cakephp/cakephp
|
Packagist |
≥ 2.4.0
< 2.4.99
|
2.4.99
|
|
cakephp/cakephp
|
Packagist |
≥ 2.5.0
< 2.5.99
|
2.5.99
|
|
cakephp/cakephp
|
Packagist |
≥ 2.6.0
< 2.6.12
|
2.6.12
|
|
cakephp/cakephp
|
Packagist |
≥ 2.7.0
< 2.7.6
|
2.7.6
|
|
cakephp/cakephp
|
Packagist |
≥ 3.0.0
< 3.0.15
|
3.0.15
|
|
cakephp/cakephp
|
Packagist |
≥ 3.1.0
< 3.1.4
|
3.1.4
|
References
Frequently Asked Questions
What is GHSA-p76f-wr22-4rv6?
Which Cakephp/cakephp versions are affected?
What version fixes GHSA-p76f-wr22-4rv6?
Is cakephp/cakephp affected?
What CWE is associated with GHSA-p76f-wr22-4rv6?
How can I check Packagist dependencies for GHSA-p76f-wr22-4rv6?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-p76f-wr22-4rv6",
"modified" : "2023-01-20T23:35:01Z",
"published" : "2023-01-20T23:35:01Z",
"aliases" : [ ],
"summary" : "CakePHP vulnerable to Remote File Inclusion through View template name manipulation",
"details" : "CakePHP 2.x prior to 2.0.99, 2.1.99, 2.2.99, 2.3.99, 2.4.99, 2.5.99, 2.6.12, and 2.7.6 and 3.x prior to 3.0.15 and 3.1.4 is vulnerable to Remote File Inclusion through View template name manipulation.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "cakephp/cakephp"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.0.99"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "cakephp/cakephp"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.1.0"
}, {
"fixed" : "2.1.99"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "cakephp/cakephp"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.2.0"
}, {
"fixed" : "2.2.99"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "cakephp/cakephp"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.3.0"
}, {
"fixed" : "2.3.99"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "cakephp/cakephp"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.4.0"
}, {
"fixed" : "2.4.99"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "cakephp/cakephp"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.5.0"
}, {
"fixed" : "2.5.99"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "cakephp/cakephp"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.6.0"
}, {
"fixed" : "2.6.12"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "cakephp/cakephp"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.7.0"
}, {
"fixed" : "2.7.6"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "cakephp/cakephp"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0"
}, {
"fixed" : "3.0.15"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "cakephp/cakephp"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.1.0"
}, {
"fixed" : "3.1.4"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/cakephp/cakephp/commit/5e60cc5d182e6131e3fbdfdf69f49d560c9ff78b"
}, {
"type" : "WEB",
"url" : "https://bakery.cakephp.org/2015/11/05/cakephp_3015_314_2612_276_released.html"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/cakephp/cakephp/2015-11-05.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/cakephp/cakephp"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-01-20T23:35:01Z",
"nvd_published_at" : null
}
}