CVE-2026-59946
published medium CVSS 3.1 · 6.1Composer: Path traversal in package bin field lets dependencies chmod arbitrary host files
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| composer | — | composer>= 1.0, < 2.2.29 · >= 2.3.0, < 2.10.2 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1941 | Fixed | Not stated | Amazon Linux assessment |
| SUSE / openSUSE | SLE-15-SP4 | php-composer2noarch | Advisory build | 2.2.30-150400.3.21.1 | SUSE-SU-2026:4283-1 |
| Amazon Linux | AL2023 | composernoarch | Listed in advisory | Not stated | ALAS2023-2026-1941 |
| SUSE / openSUSE | SLE-15-SP4 | php-composer2noarch | Advisory build | 2.2.30-150400.3.24.1 | SUSE-SU-2026:4589-1 |
| SUSE / openSUSE | SLE-15-SP5 | php-composer2noarch | Advisory build | 2.2.30-150400.3.21.1 | SUSE-SU-2026:4283-1 |
| SUSE / openSUSE | SLE-15-SP5 | php-composer2noarch | Advisory build | 2.2.30-150400.3.24.1 | SUSE-SU-2026:4589-1 |
Show 10 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-15-SP6 | php-composer2noarch | Advisory build | 2.6.4-150600.3.12.1 | SUSE-SU-2026:3105-1 |
| SUSE / openSUSE | SLE-15-SP7 | php-composer2noarch | Advisory build | 2.6.4-150600.3.12.1 | SUSE-SU-2026:3105-1 |
| SUSE / openSUSE | SLE-16 | php-composer2noarch | Advisory build | 2.8.9-160000.4.1 | SUSE-SU-2026:23116-1 |
| SUSE / openSUSE | SLE-16 | php-composer2noarch | Advisory build | 2.8.9-160000.4.1 | SUSE-SU-2026:23138-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | php-composer2noarch | Advisory build | 2.8.9-160000.4.1 | OPENSUSE-SU-2026:21520-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | php-composer2aarch64 | Advisory build | 2.10.2-1.1 | OPENSUSE-SU-2026:11268-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | php-composer2ppc64le | Advisory build | 2.10.2-1.1 | OPENSUSE-SU-2026:11268-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | php-composer2s390x | Advisory build | 2.10.2-1.1 | OPENSUSE-SU-2026:11268-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | php-composer2x86_64 | Advisory build | 2.10.2-1.1 | OPENSUSE-SU-2026:11268-1 |
| Amazon Linux | AL2023 | composersrc | Listed in advisory | Not stated | ALAS2023-2026-1941 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.1 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| composer | composer | >= 1.0, < 2.2.29 (affected)>= 2.3.0, < 2.10.2 (affected) | GitHub_M · cna |
Weaknesses
2- CWE-22 CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
- CWE-732 CWE-732: Incorrect Permission Assignment for Critical Resource
References
5- https://github.com/composer/composer/commit/502c6c4f699802d9cf464728b3e8a95674f919a0
- https://github.com/composer/composer/commit/c50b1efd13ebd73f6dca19b31424c5a02bf93cc1
- https://github.com/composer/composer/releases/tag/2.10.2
- https://github.com/composer/composer/releases/tag/2.2.29
- https://github.com/composer/composer/security/advisories/GHSA-gjfg-22fp-rrxx
Provider assertions
2GitHub_M · cna
Composer: Path traversal in package bin field lets dependencies chmod arbitrary host files
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 46bb05be53a8e1139c15ad4add9c5bbd8fbdebdc72314e93d7d902c5ebf9ee54
- Ingested
- 23 Sep 2026, 09:22:51 UTC
- Source record
- Official CVE record