LeakyCreds
NewInstant webhook alerts now available — notified within seconds of any credential detection.Learn more →
Home / Vulnerability Intelligence / CVE-2026-40176

CVE-2026-40176 - Vulnerability Analysis

HighCVSS: 7.8

Last Updated: April 15, 2026

Composer - Command Injection

Published: April 15, 2026Updated: April 15, 2026PoC Available

Overview

Composer 1.0 through 2.2.26 and 2.3 through 2.9.5 contain a command injection caused by improper escaping of user-supplied Perforce connection parameters in Perforce::generateP4Command(), letting attackers execute arbitrary commands via malicious composer.json files, exploit requires running Composer on untrusted projects.

Severity & Score

Severity: High
CVSS Score: 7.8

Impact

Attackers can execute arbitrary commands as the user running Composer, potentially compromising the system.

Mitigation

Update to Composer 2.2.27 or 2.9.6 or later.

Details

CVE ID
CVE-2026-40176
Severity
High
CVSS Score
7.8
Type
command_injection
Status
new

CWE

  • CWE-20

CVSS Metrics

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H