Medium severity · published Jul 8, 2026
CVE-2026-59946
Composer: Path traversal in package bin field lets dependencies chmod arbitrary host files
6.1
CVSS
0.1%
EPSS
No
On KEV
Description
Composer is a dependency Manager for the PHP language. Prior to 2.2.29 and 2.10.2, a Composer package bin entry containing .. path segments can resolve outside the package install directory and cause Composer's binary installation flow to chmod an existing host file to a world-readable and world-executable mode during composer install, update, or require. This issue is fixed in versions 2.2.29 and 2.10.2.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
Attack vector
Local
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
Low
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.1% · higher than 3% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CO
composer · composer
>= 1.0, < 2.2.29; >= 2.3.0, < 2.10.2 · source: vendor
Affected product
CO
composer
composer
More from composer
8.8
CVE-2026-40261
Composer has Command Injection via Malicious Perforce Reference
8.8
CVE-2024-35242
Composer vulnerable to command injection via malicious git/hg branch names
8.8
CVE-2024-35241
Composer vulnerable to command injection via malicious git branch name
7.8
CVE-2026-40176
Composer is vulnerable to Command Injection via Malicious Perforce Repository
7.8
CVE-2024-24821
Code execution and possible privilege escalation via compromised InstalledVersions.php or installed.php in Composer