Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. composer/composer
  4. ›
  5. CVE-2021-41116

CVE-2021-41116: Improper Neutralization of Special Elements used in a Command ('Command Injection')

October 5, 2021 (updated October 11, 2021)

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.

References

  • github.com/advisories/GHSA-frqg-7g38-6gcf
  • github.com/composer/composer/commit/ca5e2f8d505fd3bfac6f7c85b82f2740becbc0aa
  • github.com/composer/composer/security/advisories/GHSA-frqg-7g38-6gcf
  • nvd.nist.gov/vuln/detail/CVE-2021-41116

Code Behaviors & Features

Detect and mitigate CVE-2021-41116 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.10.23, all versions starting from 2.0 before 2.1.9

Fixed versions

  • 1.10.23
  • 2.1.9

Solution

Upgrade to versions 1.10.23, 2.1.9 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-77: Improper Neutralization of Special Elements used in a Command ('Command Injection')

Source file

packagist/composer/composer/CVE-2021-41116.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:33 +0000.