CVE-2021-41116: Command injection in composer on Windows
Vulnerability summary
CVE-2021-41116 is a critical (CVSS 9.8) vulnerability in composer. EPSS estimates a 2.83% chance of exploitation in the next 30 days, higher than 87% of scored vulnerabilities.
Not severe (CVSS 8.2, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 1 · Related 1Timeline
- 05-10-2021PublishedVulnerability first disclosed.
- 04-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 4 sources · 2 versions- CVE.orgCNA8.2HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:NDiffers
- OSV · UbuntuEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- OSV · AlpineEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
2.83%
Chance of exploitation in the next 30 days
Percentile
87%
Versus all other CVEs
30-day change
No change 0.00 pp
From 2.83% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
Opensuse2 products
- php-composer2&distro=openSUSE Tumbleweed< 2.1.12-1.1
- php-composer&distro=openSUSE Tumbleweed< 1.10.25-1.1
Alpine1 product
- composer≥ 2.0.0, < 2.1.9-r0
Composer1 product
- composer< 1.10.23 | ≥ 2.0, < 2.1.9
Getcomposer1 product
- composer< 1.10.23 | ≥ 2.0.0, < 2.1.9
Tenable1 product
- tenable.sc< 5.21.0
Ubuntu1 product
- composerAll versions (No fix recorded)
6 vendors · 7 products
References
7 links- github.com/composer/composer/security/advisories/GHSA-frqg-7g38-6gcfX Refsource CONFIRMREPORTThird Party Advisory
- github.com/composer/composer/commit/ca5e2f8d505fd3bfac6f7c85b82f2740becbc0aaX Refsource MISCREPORTPatchThird Party Advisory