SecurityContext

CVE-2021-41116: Composer - Command Injection

  • Cve: CVE-2021-41116
  • Name: Composer - Command Injection
  • 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.
  • Impact: Attackers can execute arbitrary commands on the system, potentially leading to full system compromise.
  • Remediation: Upgrade to Composer versions 1.10.23 or 2.1.9.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: logged_in
  • Requirements: Attacker needs to run Composer on Windows with untrusted dependencies
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.02825
  • Epss percentile: 0.8684
  • Assignee: [email protected]
  • Published at: 2021-10-05T18:15:08Z
  • Age in days: 1876
  • Modified at: 2026-06-17T04:07:54Z
  • Patch available: yes
  • References total: 3
  • Products total: 2
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2021-41116
  • Nvd status: modified
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: hackerone

Cwe

IdName
CWE-77Improper Neutralization of Special Elements used in a Command

References

Same in every row:

  • Source: nvd
UrlTags
https://github.com/composer/composer/commit/ca5e2f8d505fd3bfac6f7c85b82f2740becbc0aaPatch, Third Party Advisory
https://github.com/composer/composer/security/advisories/GHSA-frqg-7g38-6gcfThird Party Advisory
https://www.sonarsource.com/blog/securing-developer-tools-package-managers/

Products

ProductAffectedPlatform boundSourcesUrl
getcomposer:composer>= 2.0.0, < 2.1.9; < 1.10.23nonvd/v1/products/getcomposer/composer
tenable:tenable.sc< 5.21.0nonvd/v1/products/tenable/tenable.sc

Projects

RepositoryLink kindsIndexedUrl
composer/composercommit, fix, package, security_advisoryyes/v1/repositories/composer/composer

Index

  • Repositories: 25
  • Repositories high signal: 22
  • Packages: 1

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts