MediumGHSA-rw73-xmpv-j5x2CVE-2006-5031

CakePHP directory traversal vulnerability allows remote attackers to read arbitrary files

Published 1 May 2022 · Updated 8 Nov 2023

Affected package

Affected
>=1.0.1.2708 <1.1.8.3544
Fixed in
1.1.8.3544
Update to the fixed version for your release line, for example:composer require cakephp/cakephp:^1.1.8.3544

Details

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.

Is GHSA-rw73-xmpv-j5x2 in any of your client repos?

Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected cakephp/cakephp, and gives you the command that fixes it.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.