Vulnerabilities / CVE-2021-41116

critical

CVE-2021-41116

Improper escaping of command arguments on Windows leading to command injection

Published Modified CWE 77
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA8.2CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N
Bitnami9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, Bitnami. Rated lower by GHSA (high).

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 packages and fixed versions

SourcePackageFixed in
bitnami::Bitnami Vulnerability Databasecomposer1.10.23, 2.1.9
alpine 3.14composer2.1.9-r0
alpine 3.15composer2.1.9-r0
alpine 3.16composer2.1.9-r0
alpine 3.17composer2.1.9-r0
alpine 3.18composer2.1.9-r0
alpine 3.19composer2.1.9-r0
alpine 3.20composer2.1.9-r0
alpine 3.21composer2.1.9-r0
alpine 3.22composer2.1.9-r0
alpine 3.23composer2.1.9-r0
alpine 3.24composer2.1.9-r0
Show all 15 entries from 15 sources
SourcePackageFixed in
bitnami::Bitnami Vulnerability Databasecomposer1.10.23, 2.1.9
alpine 3.14composer2.1.9-r0
alpine 3.15composer2.1.9-r0
alpine 3.16composer2.1.9-r0
alpine 3.17composer2.1.9-r0
alpine 3.18composer2.1.9-r0
alpine 3.19composer2.1.9-r0
alpine 3.20composer2.1.9-r0
alpine 3.21composer2.1.9-r0
alpine 3.22composer2.1.9-r0
alpine 3.23composer2.1.9-r0
alpine 3.24composer2.1.9-r0
alpine edgecomposer2.1.9-r0
composer::GitHub Security Advisory Composercomposer/composer1.10.23, 2.1.9
composer::PHP Security Advisories Databasecomposer/composerno fix listed

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.