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
7.8
CVE-2026-40176
Composer is vulnerable to Command Injection via Malicious Perforce Repository
7.7
CVE-2026-84361
Composer: Perforce source URL permits P4PORT `rsh:` command execution
7.5
CVE-2026-45793
Composer: Github Actions issued GITHUB_TOKEN disclosure in GitHub Actions logs
7.0
CVE-2026-59948
Composer: Arbitrary file write outside vendor via malicious transitive package name