high8.2
CVE-2021-41116
Improper escaping of command arguments on Windows leading to command injection
Impact
### 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
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| composer | composer/composer | < 1.10.23 | 1.10.23 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Getcomposer | Composer | before 1.10.23 from 2.0.0 before 2.1.9 |
| Tenable | Tenable.Sc | before 5.21.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/composer/composer/commit/ca5e2f8d505fd3bfac6f7c85b82f2740becbc0aa
- https://github.com/composer/composer/security/advisories/GHSA-frqg-7g38-6gcf
- https://www.sonarsource.com/blog/securing-developer-tools-package-managers/
- https://github.com/advisories/GHSA-frqg-7g38-6gcf
- https://nvd.nist.gov/vuln/detail/CVE-2021-41116
- https://www.tenable.com/security/tns-2022-09
- https://github.com/FriendsOfPHP/security-advisories/blob/master/composer/composer/CVE-2021-41116.yaml