Vulnerability Name:

CVE-2021-41116 (CCN-211094)

Assigned:2021-10-05
Published:2021-10-05
Updated:2022-09-10
Summary: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 v3 Severity:9.8 Critical (CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)
8.5 High (Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
9.8 Critical (CCN CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H)
8.5 High (CCN Temporal CVSS v3.1 Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C)
Exploitability Metrics:Attack Vector (AV): Network
Attack Complexity (AC): Low
Privileges Required (PR): None
User Interaction (UI): None
Scope:Scope (S): Unchanged
Impact Metrics:Confidentiality (C): High
Integrity (I): High
Availibility (A): High
CVSS v2 Severity:7.5 High (CVSS v2 Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Authentication (Au): None
Impact Metrics:Confidentiality (C): Partial
Integrity (I): Partial
Availibility (A): Partial
10.0 High (CCN CVSS v2 Vector: AV:N/AC:L/Au:N/C:C/I:C/A:C)
Exploitability Metrics:Access Vector (AV): Network
Access Complexity (AC): Low
Athentication (Au): None
Impact Metrics:Confidentiality (C): Complete
Integrity (I): Complete
Availibility (A): Complete
Vulnerability Type:CWE-77
CWE-77
Vulnerability Consequences:Gain Access
References:Source: MITRE
Type: CNA
CVE-2021-41116

Source: XF
Type: UNKNOWN
composer-cve202141116-cmd-exec(211094)

Source: MISC
Type: Patch, Third Party Advisory
https://github.com/composer/composer/commit/ca5e2f8d505fd3bfac6f7c85b82f2740becbc0aa

Source: CCN
Type: Composer GIT Repository
Improper escaping of command arguments on Windows leading to command injection

Source: CONFIRM
Type: Third Party Advisory
https://github.com/composer/composer/security/advisories/GHSA-frqg-7g38-6gcf

Source: CONFIRM
Type: Patch, Release Notes, Third Party Advisory
https://www.tenable.com/security/tns-2022-09

Vulnerable Configuration:Configuration 1:
  • cpe:/a:getcomposer:composer:*:*:*:*:*:*:*:* (Version < 1.10.23)
  • OR cpe:/a:getcomposer:composer:*:*:*:*:*:*:*:* (Version >= 2.0.0 and < 2.1.9)

  • Configuration 2:
  • cpe:/a:tenable:tenable.sc:*:*:*:*:*:*:*:* (Version < 5.21.0)

  • Configuration CCN 1:
  • cpe:/a:getcomposer:composer:2.0:*:*:*:*:*:*:*

  • * Denotes that component is vulnerable
    Oval Definitions
    Definition IDClassTitleLast Modified
    oval:org.opensuse.security:def:3543
    P
    lftp-4.7.4-3.6.1 on GA media (Moderate)
    2022-06-28
    oval:org.opensuse.security:def:95173
    P
    php-composer2-2.2.3-150400.1.6 on GA media (Moderate)
    2022-06-22
    oval:org.opensuse.security:def:113131
    P
    php-composer2-2.1.12-1.1 on GA media (Moderate)
    2022-01-17
    BACK
    getcomposer composer *
    getcomposer composer *
    tenable tenable.sc *
    getcomposer composer 2.0