CVE-2021-41116
JSON

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 packageVersionsReported by
composer composer< 1.10.23, >= 2.0, < 2.1.9CVE List
composer/composer (Packagist)before 1.10.23, from 2.0.0-alpha1 before 2.1.9GitHub Advisory Database
getcomposer composerbefore 1.10.23, from 2.0.0 before 2.1.9NVD
tenable tenable.scbefore 5.21.0NVD
composer (Bitnami)before 1.10.23, from 2.0.0 before 2.1.9Bitnami Vulnerability Database

All scores

GitHub_M8.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N
GitHub8.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P
Bitnami Vulnerability Databasecritical 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

SourceRecordLicence
CVE ListCVE-2021-41116 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-frqg-7g38-6gcf changed 2026-07-08CC-BY-4.0
NVDCVE-2021-41116 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-COMPOSER-2021-41116 changed 2026-09-08Apache-2.0