CVE-2021-41116Getcomposer Composer
Critical 9.8 No auth needed
Follow: this CVE · Getcomposer · Getcomposer Composer We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 2.8% probability of exploitation in 30 days · percentile 87
- Auth required
- No
- Published
- Oct 5, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-77
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Composer.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | composer/composer |
< 1.10.23 |
1.10.23 |
composer require "composer/composer:^1.10.23" |
| Packagist | composer/composer |
≥ 2.0.0-alpha1 < 2.1.9 |
2.1.9 |
composer require "composer/composer:^2.1.9" |
Per OSV / GitHub Advisories (GHSA-frqg-7g38-6gcf). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| getcomposer | composer | < 1.10.23 |
| getcomposer | composer | ≥ 2.0.0 < 2.1.9 |
| tenable | tenable.sc | < 5.21.0 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch Third Party Advisory
- github.com Third Party Advisory
- www.sonarsource.com