CVE-2021-41116
published high CVSS 3.1 · 8.2Command injection in composer on Windows
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| composer | — | composer< 1.10.23 · >= 2.0, < 2.1.9 | Affected | Not stated | GitHub_M |
| Alpine Linux | edge | composer | Fixed | 2.1.9-r0 | Package fix record |
| SUSE / openSUSE | openSUSE-Leap-15.3 | php-composernoarch | Advisory build | 1.10.26-bp153.2.6.1 | OPENSUSE-SU-2022:0132-1 |
| Alpine Linux | v3.14 | composer | Fixed | 2.1.9-r0 | Package fix record |
| Alpine Linux | v3.15 | composer | Fixed | 2.1.9-r0 | Package fix record |
| Alpine Linux | v3.16 | composer | Fixed | 2.1.9-r0 | Package fix record |
| Alpine Linux | v3.17 | composer | Fixed | 2.1.9-r0 | Package fix record |
| Alpine Linux | v3.18 | composer | Fixed | 2.1.9-r0 | Package fix record |
Show 14 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.19 | composer | Fixed | 2.1.9-r0 | Package fix record |
| Alpine Linux | v3.20 | composer | Fixed | 2.1.9-r0 | Package fix record |
| Alpine Linux | v3.21 | composer | Fixed | 2.1.9-r0 | Package fix record |
| Alpine Linux | v3.22 | composer | Fixed | 2.1.9-r0 | Package fix record |
| Alpine Linux | v3.23 | composer | Fixed | 2.1.9-r0 | Package fix record |
| Alpine Linux | v3.24 | composer | Fixed | 2.1.9-r0 | Package fix record |
| SUSE / openSUSE | openSUSE-Tumbleweed | php-composeraarch64 | Advisory build | 1.10.25-1.1 | OPENSUSE-SU-2024:11874-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | php-composerppc64le | Advisory build | 1.10.25-1.1 | OPENSUSE-SU-2024:11874-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | php-composers390x | Advisory build | 1.10.25-1.1 | OPENSUSE-SU-2024:11874-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | php-composerx86_64 | Advisory build | 1.10.25-1.1 | OPENSUSE-SU-2024:11874-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | php-composer2aarch64 | Advisory build | 2.1.12-1.1 | OPENSUSE-SU-2024:11617-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | php-composer2ppc64le | Advisory build | 2.1.12-1.1 | OPENSUSE-SU-2024:11617-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | php-composer2s390x | Advisory build | 2.1.12-1.1 | OPENSUSE-SU-2024:11617-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | php-composer2x86_64 | Advisory build | 2.1.12-1.1 | OPENSUSE-SU-2024:11617-1 |
Description
Composer is an open source dependency manager for the PHP language. In affected versions windows users running Composer to install untrusted dependencies are subject to command injection and should upgrade their composer version. Other OSs and WSL are not affected. The issue has been resolved in composer versions 1.10.23 and 2.1.9. There are no workarounds for this issue.
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
- 8.2 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/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.10.23 (affected)>= 2.0, < 2.1.9 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-77 CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')
References
3Provider assertions
2GitHub_M · cna
Command injection in composer on Windows
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 7b3532e166d86ea11d6a29683c66c8028bcbf262d2762d4063bdf6342781ab5a
- Ingested
- 23 Sep 2026, 07:56:07 UTC
- Source record
- Official CVE record