8.2high
Command injection in composer on Windows
- Severity
- 8.2high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 2.83% (higher than 86% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-frqg-7g38-6gcfBIT-COMPOSER-2021-41116
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| composer composer | < 1.10.23, >= 2.0, < 2.1.9 | CVE List |
| composer/composer (Packagist) | before 1.10.23, from 2.0.0-alpha1 before 2.1.9 | GitHub Advisory Database |
| getcomposer composer | before 1.10.23, from 2.0.0 before 2.1.9 | NVD |
| tenable tenable.sc | before 5.21.0 | NVD |
| composer (Bitnami) | before 1.10.23, from 2.0.0 before 2.1.9 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 8.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N |
| GitHub | 8.2high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
| Bitnami Vulnerability Database | critical rating |
Classification
What each source says
CVE List
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.
GitHub Advisory Database
Impact
Windows users running Composer to install untrusted dependencies are affected and should definitely upgrade for safety. Other OSs and WSL are not affected.
Patches
1.10.23 and 2.1.9 fix the issue
Workarounds
None
NVD (es)
Composer es un administrador de dependencias de código abierto para el lenguaje PHP. En las versiones afectadas, unos usuarios de Windows que ejecutan Composer para instalar dependencias no confiables están sujetos a una inyección de comandos y deben actualizar su versión de Composer. Otros Sistemas Operativos y WSL no están afectados. El problema ha sido resuelto en Composer versiones 1.10.23 y 2.1.9. No se presentan soluciones para este problema
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-41116 changed 2024-08-04 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-frqg-7g38-6gcf changed 2026-07-08 | CC-BY-4.0 |
| NVD | CVE-2021-41116 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-COMPOSER-2021-41116 changed 2026-09-08 | Apache-2.0 |