Command injection in composer on Windows (composer composer)
At a glance
- Source
- NVD
- EPSS
- EPSS 2.83 % · percentile 87 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- GitHub_M
- NVD status
- Modified
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.
Weaknesses (CWE)
- CWE-77 — Improper Neutralization of Special Elements used in a Command
References
Scores
| Version | Score | Vector | Scored by |
|---|---|---|---|
| CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N | GitHub_M |
| CVSS 3.1 | HIGH 8.2 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N | NVD · security-advisories@github.com (Secondary) |
| CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | NVD · nvd@nist.gov (Primary) |
| CVSS 2.0 | HIGH 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P | NVD · nvd@nist.gov (Primary) |
Advisories
- GHSA-frqg-7g38-6gcf — Improper escaping of command arguments on Windows leading to command injection
European references
- ENISA EUVD · EUVD-2021-2198
- GCVE · GCVE-0-2021-41116
CERT-FR advisories
- CERTFR-2022-AVI-370 — Multiples vulnérabilités dans Tenable.sc · cert.ssi.gouv.fr
Affected configurations (NVD CPE)
cpe:2.3:a:getcomposer:composer:*:*:*:*:*:*:*:*< 1.10.23cpe:2.3:a:getcomposer:composer:*:*:*:*:*:*:*:*≥ 2.0.0 < 2.1.9cpe:2.3:a:tenable:tenable.sc:*:*:*:*:*:*:*:*< 5.21.0
Affected products
| Product | Versions |
|---|---|
| composer · composer | affected < 1.10.23 ; affected >= 2.0, < 2.1.9 |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |