# CVE-2021-41116: Command injection in composer on Windows

- Severity: High 8.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 2.83%, higher than 86% of CVEs (2026-12-01)
- Published: 2021-10-05T17:40:10.000Z
- Modified: 2026-09-08T08:45:59.769Z
- Also known as: GHSA-frqg-7g38-6gcf, BIT-COMPOSER-2021-41116
- Weaknesses: CWE-77
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- composer composer: < 1.10.23; >= 2.0, < 2.1.9
- composer/composer (Packagist): before 1.10.23; from 2.0.0-alpha1 before 2.1.9
- getcomposer composer: before 1.10.23; from 2.0.0 before 2.1.9
- tenable tenable.sc: before 5.21.0
- composer (Bitnami): before 1.10.23; from 2.0.0 before 2.1.9

## Every score

- GitHub_M: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N`
- GitHub: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://github.com/composer/composer/security/advisories/GHSA-frqg-7g38-6gcf> (advisory, third-party-advisory, web)
- <https://github.com/composer/composer/commit/ca5e2f8d505fd3bfac6f7c85b82f2740becbc0aa> (advisory, patch, third-party-advisory, web)
- <https://www.sonarsource.com/blog/securing-developer-tools-package-managers/> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-41116> (advisory, web)
- <https://github.com/FriendsOfPHP/security-advisories/blob/master/composer/composer/CVE-2021-41116.yaml> (web)
- <https://github.com/composer/composer> (package)
- <https://www.sonarsource.com/blog/securing-developer-tools-package-managers> (web)
- <https://www.tenable.com/security/tns-2022-09> (web)

## Sources

- CVE List: [CVE-2021-41116](https://www.cve.org/CVERecord?id=CVE-2021-41116), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-frqg-7g38-6gcf](https://github.com/advisories/GHSA-frqg-7g38-6gcf), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2021-41116](https://nvd.nist.gov/vuln/detail/CVE-2021-41116), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-COMPOSER-2021-41116](https://osv.dev/vulnerability/BIT-COMPOSER-2021-41116), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2021-41116 · Whole record: https://cve.day/CVE-2021-41116.json · Rebuilt by cve.day 2026-11-25T22:58:04.314Z
