Intel

AIKIDO-2026-430331

composer/composer is vulnerable to Path Traversal

Path TraversalCVE-2026-59944 Published 2 days ago

61

Medium Risk

This Affects:

PHPcomposer/composer
1.0.0 - 2.2.29
Fixed in 2.2.30
2.3.0 - 2.10.2
Fixed in 2.10.3
Are you affected? Scan for Free

TL;DR

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.

Who does this affect?

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.

Background info

composer/composer is vulnerable to Path Traversal in versions 1.0.0 - 2.2.29 and 2.3.0 - 2.10.2.

How to fix this

Upgrade the composer/composer library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform