GHSA-p76f-wr22-4rv6 CakePHP vulnerable to Remote File Inclusion through View template name manipulation

Not scored Published

Attackers can execute arbitrary code or read sensitive files by manipulating view template names in CakePHP applications.

Exploited in the wild
Not known
Login needed
Not stated
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is GHSA-p76f-wr22-4rv6?

GHSA-p76f-wr22-4rv6 is a path traversal vulnerability in cakephp/cakephp, published on 20 Jan 2023. It can be exploited over the network, with no action from the victim.

Official description

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.

Which versions are affected by GHSA-p76f-wr22-4rv6?

20 open source packages ship an affected version, including cakephp/cakephp.

PackageAffectedFixed in
cakephp/cakephp PackagistFrom 2.0.02.0.99
cakephp/cakephp PackagistFrom 2.0.02.0.99
cakephp/cakephp PackagistFrom 2.1.02.1.99
cakephp/cakephp PackagistFrom 2.1.02.1.99
cakephp/cakephp PackagistFrom 2.2.02.2.99
cakephp/cakephp PackagistFrom 2.2.02.2.99
14 more packages
cakephp/cakephp PackagistFrom 2.3.02.3.99
cakephp/cakephp PackagistFrom 2.3.02.3.99
cakephp/cakephp PackagistFrom 2.4.02.4.99
cakephp/cakephp PackagistFrom 2.4.02.4.99
cakephp/cakephp PackagistFrom 2.5.02.5.99
cakephp/cakephp PackagistFrom 2.5.02.5.99
cakephp/cakephp PackagistFrom 2.6.02.6.12
cakephp/cakephp PackagistFrom 2.6.02.6.12
cakephp/cakephp PackagistFrom 2.7.02.7.6
cakephp/cakephp PackagistFrom 2.7.02.7.6
cakephp/cakephp PackagistFrom 3.0.03.0.15
cakephp/cakephp PackagistFrom 3.0.03.0.15
cakephp/cakephp PackagistFrom 3.1.03.1.4
cakephp/cakephp PackagistFrom 3.1.03.1.4

How do I fix GHSA-p76f-wr22-4rv6?

Upgrade cakephp/cakephp to a fixed version for your release line: 2.0.99, 2.1.99, 2.2.99 or 2.3.99.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is GHSA-p76f-wr22-4rv6 being exploited?

There is no known exploitation of GHSA-p76f-wr22-4rv6 in the wild and no public exploit code.

Sources

Is GHSA-p76f-wr22-4rv6 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free