CVE-2006-5031 CakePHP directory traversal vulnerability allows remote attackers to read arbitrary files
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.
| Package | Affected | Fixed in |
|---|---|---|
cakephp/cakephp Packagist | From 1.0.1.2708 | 1.1.8.3544 |
cakephp/cakephp Packagist | From 1.0.1.2708 | 1.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.
Other vulnerabilities in n/a
- CVE-2023-22727 Database Query::offset() and limit() vulnerable to SQL injection in cakephp
- CVE-2020-35239 CakePHP allows method override parameters to bypass CSRF checks
- CVE-2015-8379 CakePHP might allow remote attackers to bypass CSRF protection mechanism via the _method parameter
- CVE-2019-11458 Unsafe deserialization in SmtpTransport in CakePHP
- CVE-2016-4793 CakePHP allows remote attackers to spoof their IP
Sources
Also known as DEBIAN-CVE-2006-5031, GHSA-rw73-xmpv-j5x2.