CVE-2021-41116
highpriority · track · 40EPSS 0.028 · 87 %ileEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · high–critical · 7.5–9.8
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (9)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- GHSA-frqg-7g38-6gcfImproper escaping of command arguments on Windows leading to command injection2021-10-05ghsa · osvUS
### 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
- BIT-composer-2021-41116Command injection in composer on Windows2024-03-06vendor · osvUS
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.
also known as (5)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (15)
External citations — patches, advisories, analysis.
- https://github.com/composer/composer/commit/ca5e2f8d505fd3bfac6f7c85b82f2740becbc0aacnnvd
- https://github.com/composer/composer/security/advisories/GHSA-frqg-7g38-6gcfcnnvd
- https://nvd.nist.gov/vuln/detail/CVE-2021-41116cnnvd
- https://vigilance.fr/vulnerability/Composer-code-execution-via-Untrusted-Dependencies-38298cnnvd
- https://www.auscert.org.au/bulletins/ESB-2022.1792cnnvd
- https://www.cybersecurity-help.cz/vdb/SB2021100610cnnvd
- https://www.cybersecurity-help.cz/vdb/SB2022042017cnnvd
- https://www.sonarsource.com/blog/securing-developer-tools-package-managers/cnnvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan