High severity · published Jul 8, 2026
CVE-2026-59948
Composer: Arbitrary file write outside vendor via malicious transitive package name
7.0
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 maliciously crafted package from an untrusted repository other than Packagist.org or Private Packagist can cause Composer to write attacker-controlled files outside the vendor directory and outside the project during install or update by using an invalid package name that is not correctly validated before dependency-resolution results are written or installed. This issue is fixed in versions 2.2.29 and 2.10.2.
CVSS vector
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Attack vector
Local
Complexity
High
Privileges
None
User interaction
Required
Confidentiality
High
Integrity
High
Availability
High
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
6.1
CVE-2026-59944
Composer: CVE-2026-59946 fix bypass via symlinked package bin path