CVE-2006-5031 CakePHP directory traversal vulnerability allows remote attackers to read arbitrary files

Medium 5.0 Published Updated

Remote attackers can read arbitrary files via directory traversal in the vendors.php script, exposing sensitive data.

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

What is CVE-2006-5031?

CVE-2006-5031 is a medium-severity path traversal vulnerability in n/a, published on 27 Sep 2006. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Directory traversal vulnerability in app/webroot/js/vendors.php in Cake Software Foundation CakePHP before 1.1.8.3544 allows remote attackers to read arbitrary files via a .. (dot dot) in the file parameter, followed by a filename ending with "%00" and a .js filename.

Weakness: CWE-22

Which versions are affected by CVE-2006-5031?

2 open source packages ship an affected version, including cakephp/cakephp. It affects 1 product.

PackageAffectedFixed in
cakephp/cakephp PackagistFrom 1.0.1.27081.1.8.3544
cakephp/cakephp PackagistFrom 1.0.1.27081.1.8.3544

Products include Cakephp Cakephp.

How do I fix CVE-2006-5031?

Upgrade cakephp/cakephp to 1.1.8.3544 or later.

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

Is CVE-2006-5031 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2006-5031 exists.

Public exploit code: 1 Exploit-DB entry.

Sources

Also known as DEBIAN-CVE-2006-5031, GHSA-rw73-xmpv-j5x2.

Is CVE-2006-5031 in your software?

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

Check your SBOMs for free