CVE-2026-59946 json
Composer: Path traversal in package bin field lets dependencies chmod arbitrary host files
published 2026-07-08 4 mo ago modified 2026-07-27 3 mo ago also BIT-composer-2026-59946 , EUVD-2026-42360 , GHSA-gjfg-22fp-rrxx
- cvss
- 6.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.1%
- EPSS 0.1% chance of exploitation in 30 days, percentile 3%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- packagist composer/composer 2.2.29, 2.10.2
- bitnami composer 2.2.29, 2.10.2
- getcomposer composer 2.2.29, 2.10.2
- composer Debian 14 2.10.2-1
debian advisories DEBIAN-CVE-2026-59946
- composer hummingbird 1 2.10.2-1.hum1
red hat advisories RHSA-2026:34854
- php-composer2 SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES 15 SP5-LTSS +5 more 2.2.30-150400.3.24.1
- php-composer2 SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES 15 SP5-LTSS +5 more 2.2.30-150400.3.21.1
- php-composer2 SLES 16.0, SLES for SAP applications 16.0 2.8.9-160000.4.1
- php-composer2 SLES for SAP 15 SP6, SLES 15 SP6-LTSS, SLE Module for Web and Scripting 15 SP7 2.6.4-150600.3.12.1
suse advisories SUSE-SU-2026:4589-1SUSE-SU-2026:4283-1SUSE-SU-2026:23116-1SUSE-SU-2026:23138-1SUSE-SU-2026:3105-1
- php-composer2 openSUSE Leap 16.0 2.8.9-160000.4.1
- php-composer2 openSUSE Tumbleweed 2.10.2-1.1
opensuse advisories openSUSE-SU-2026:21520-1openSUSE-SU-2026:11268-1
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-59946 updated cvss 5.6
composer: Composer: Insecure file permissions leading to information disclosure and potential execution
-
Red Hat Hardened Images composer 2.10.2-1.hum1fixed: vendor fix RHSA-2026:34854
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 4 mo ago
Exploit prediction
0.14% chance of exploitation in the next 30 days, higher than 3% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 6.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N |
| GitHub | 3.1 | 6.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N |
| OSV | 3.1 | 6.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | composer/composer | >=2.3.0, <2.10.2 >=1.0.0, <2.2.29 |
2.10.2 2.2.29 |
| bitnami | composer | >=1.0.0, <2.2.29 >=2.3.0, <2.10.2 |
2.2.29 2.10.2 |
Affected products
- composer composer
Classification
References
-
github.com
/composer/composer/commit/502c6c4f699802d9cf464728b3e8a95674f919a0
web
-
github.com
/composer/composer/commit/c50b1efd13ebd73f6dca19b31424c5a02bf93cc1
web
-
github.com
/composer/composer/security/advisories/GHSA-gjfg-22fp-rrxx
web
-
github.com
/composer/composer/releases/tag/2.10.2
web
-
github.com
/composer/composer/releases/tag/2.2.29
web
-
nvd.nist.gov
/vuln/detail/CVE-2026-59946
advisory, web
-
github.com
/composer/composer
package
Sources
- CVE List CVE-2026-59946
- GitHub Advisory GHSA-gjfg-22fp-rrxx
- NVD CVE-2026-59946
- OSV BIT-composer-2026-59946
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.