CVE-2026-59948
published high CVSS 3.1 · 7.0Composer: Arbitrary file write outside vendor via malicious transitive package name
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 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.
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
- 7.0 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
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-787 CWE-787: Out-of-bounds Write
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-499r-g7pc-vmp9
Provider assertions
2GitHub_M · cna
Composer: Arbitrary file write outside vendor via malicious transitive package name
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 46120ddc2ab2923a327a5e0adaadc480328aef03bcaa4b56a913a53389b8ec55
- Ingested
- 23 Sep 2026, 09:22:51 UTC
- Source record
- Official CVE record