Command Injection Vulnerability in Composer Dependency Manager
CVE-2026-84361

7.7HIGH

Key Information:

Vendor

Composer

Status
Vendor
CVE Published:
1 September 2026

Key facts: CVE-2026-84361 is a high severity (CVSS 7.7) vulnerability in composer. No exploitation in the wild or public proof-of-concept has been recorded so far. Its EPSS score is 0.5%, the estimated probability of exploitation in the next 30 days. Fixed in composer 1.0, 2.2.30, 2.3.0, 2.10.3.

What is CVE-2026-84361?

CVE-2026-84361 is a command injection vulnerability found in the Composer Dependency Manager, a widely used tool for managing PHP dependencies. This vulnerability exists in versions from 1.0 up to 2.2.30 and 2.10.3. It arises from the improper handling of metadata from malicious dependency packages or untrusted composer.lock files, specifically when the source.type is set to ‘perforce’ and the source.url contains values that can be directly interpreted by the Perforce p4 client. When Composer processes such a package through commands like composer install or composer update, it inadvertently passes unvalidated data to the p4 client, which can then execute arbitrary commands with the user's or CI account’s permissions. This poses a significant risk, as it could lead to unauthorized command execution within the organization's systems, compromising their integrity and security.

Potential impact of CVE-2026-84361

  1. Unauthorized Command Execution: Due to the command injection vulnerability, an attacker could execute arbitrary commands on the system, potentially leading to unauthorized access, data manipulation, or destruction.

  2. Privilege Escalation: The vulnerability allows for commands to be run with the privileges of the user or CI account executing Composer, which could escalate the impact of an attack, giving attackers broader access to sensitive information or critical system functions.

  3. Supply Chain Risks: Exploiting this vulnerability through malicious dependency packages increases the risk of supply chain attacks, where attackers could introduce vulnerabilities or backdoors into otherwise legitimate applications used within the organization.

Affected Version(s)

composer >= 1.0, < 2.2.30 < 1.0, 2.2.30

composer >= 2.3.0, < 2.10.3 < 2.3.0, 2.10.3

References

  • CVE-2026-40176: Command Injection Vulnerability in Composer Dependency Manager by PHP(HIGH)
Browse all analysed vulnerabilities â€ș

CVSS V4

Score:
7.7
Severity:
HIGH
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
Physical
Privileges Required:
Undefined
User Interaction:
Unknown

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.