composer/composer is vulnerable to Path Traversal
61
Medium Risk
Composer registers each package's declared binaries as runnable commands under vendor/bin and adjusts their file permissions during install. It resolves the declared bin path without fully preventing symlinks and path traversal from escaping the package directory, bypassing an earlier fix that only rejected literal parent-directory segments. A malicious package can point a binary at a file outside its own directory, causing Composer to change that file's permissions and register it as a runnable command, which can expose file contents on shared hosting. The fix validates package bin paths against traversal and symlink escape so binaries stay within the package directory.
You are affected if you are using a version that falls within the vulnerable range and you install an untrusted package that declares a crafted binary path.
composer/composer is vulnerable to Path Traversal in versions 1.0.0 - 2.2.29 and 2.3.0 - 2.10.2.
Upgrade the composer/composer library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.