Remote Code Execution via web-accessible composer.phar
CVE-2023-43655

6.4MEDIUM

Key Information:

Vendor

Composer

Status
Vendor
CVE Published:
29 September 2023

What is CVE-2023-43655?

A remote code execution vulnerability exists in Composer, a popular PHP dependency manager. If composer.phar is published on a public web-accessible server and executed as a PHP file, an attacker can exploit this vulnerability, particularly when the register_argc_argv directive is enabled in php.ini. It is recommended that users immediately upgrade to patched versions (2.6.4, 2.2.22, and 1.10.27) to mitigate the threat. Additionally, as a precaution, disabling register_argc_argv and avoiding public exposure of composer.phar should be implemented as best practices.

Affected Version(s)

composer 2.6.4, 2.2.21, 1.10.27

composer >= 2.0, < 2.2.22 < 2.0, 2.2.22

composer < 1.10.27 < 1.10.27

References

CVSS V3.1

Score:
6.4
Severity:
MEDIUM
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
High
Privileges Required:
High
User Interaction:
Required
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.