Upstream information
Description
Composer is a dependency manager for PHP. Versions 1.0 through 2.2.26 and 2.3 through 2.9.5 contain a command injection vulnerability in the Perforce::syncCodeBase() method, which appends the $sourceReference parameter to a shell command without proper escaping, and additionally in the Perforce::generateP4Command() method as in GHSA-wg36-wvj6-r67p / CVE-2026-40176, which interpolates user-supplied Perforce connection parameters (port, user, client) from the source url field without proper escaping. An attacker can inject arbitrary commands through crafted source reference or source url values containing shell metacharacters, even if Perforce is not installed. Unlike CVE-2026-40176, the source reference and url are provided as part of package metadata, meaning any compromised or malicious Composer repository can serve package metadata declaring perforce as a source type with malicious values. This vulnerability is exploitable when installing or updating dependencies from source, including the default behavior when installing dev-prefixed versions. This issue has been fixed in Composer 2.2.27 (2.2 LTS) and 2.9.6 (mainline). If developers are unable to immediately update, they can avoid installing dependencies from source by using --prefer-dist or the preferred-install: dist config setting, and only use trusted Composer repositories as a workaround.SUSE information
Overall state of this security issue: Pending
This issue is currently rated as having important severity.
| CVSS detail | CNA (GitHub) | SUSE |
|---|---|---|
| Base Score | 8.8 | 7.8 |
| Vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| Attack Vector | Network | Local |
| Attack Complexity | Low | Low |
| Privileges Required | None | None |
| User Interaction | Required | Required |
| Scope | Unchanged | Unchanged |
| Confidentiality Impact | High | High |
| Integrity Impact | High | High |
| Availability Impact | High | High |
| CVSSv3 Version | 3.1 | 3.1 |
Status of this issue by product and package
Please note that this evaluation state might be work in progress, incomplete or outdated. Also information for service packs in the LTSS phase is only included for issues meeting the LTSS criteria. If in doubt, feel free to contact us for clarification. The updates are grouped by state of their lifecycle. SUSE product lifecycles are documented on the lifecycle page.
| Product(s) | Source package | State |
|---|---|---|
| Products under general support and receiving all security fixes. | ||
| SUSE Linux Enterprise High Performance Computing 15 SP7 | php-composer2 | Affected |
| SUSE Linux Enterprise Module for Web and Scripting 15 SP7 | php-composer2 | Affected |
| SUSE Linux Enterprise Server 15 SP7 | php-composer2 | Affected |
| SUSE Linux Enterprise Server 16.0 | php-composer2 | Affected |
| SUSE Linux Enterprise Server 16.1 | php-composer2 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP7 | php-composer2 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.0 | php-composer2 | Affected |
| SUSE Linux Enterprise Server for SAP applications 16.1 | php-composer2 | Affected |
| openSUSE Leap 15.6 | php-composer2 | Affected |
| Products under Long Term Service Pack support and receiving important and critical security fixes. | ||
| SUSE Linux Enterprise High Performance Computing 15 SP4 | php-composer2 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | php-composer2 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5 | php-composer2 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | php-composer2 | Affected |
| SUSE Linux Enterprise Module for Web and Scripting 15 SP4 | php-composer2 | Affected |
| SUSE Linux Enterprise Module for Web and Scripting 15 SP5 | php-composer2 | Affected |
| SUSE Linux Enterprise Module for Web and Scripting 15 SP6 | php-composer2 | Affected |
| SUSE Linux Enterprise Server 15 SP4 | php-composer2 | Affected |
| SUSE Linux Enterprise Server 15 SP4-LTSS | php-composer2 | Affected |
| SUSE Linux Enterprise Server 15 SP5 | php-composer2 | Affected |
| SUSE Linux Enterprise Server 15 SP5-LTSS | php-composer2 | Affected |
| SUSE Linux Enterprise Server 15 SP6 | php-composer2 | Affected |
| SUSE Linux Enterprise Server 15 SP6-LTSS | php-composer2 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | php-composer2 | Affected |
| SUSE Manager Proxy 4.3 | php-composer2 | Affected |
| SUSE Manager Retail Branch Server 4.3 | php-composer2 | Affected |
| SUSE Manager Server 4.3 | php-composer2 | Affected |
| SUSE Manager Server LTS 4.3 | php-composer2 | Affected |
| Products past their end of life and not receiving proactive updates anymore. | ||
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | php-composer2 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | php-composer2 | Affected |
| SUSE Linux Enterprise High Performance Computing 15 SP6 | php-composer2 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | php-composer2 | Affected |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | php-composer2 | Affected |
| openSUSE Leap 15.4 | php-composer2 | Affected |
| openSUSE Leap 15.5 | php-composer2 | Affected |
| Container Status | ||
| bci/php bci/php-apache bci/php-apache:8 bci/php-fpm bci/php-fpm:8 bci/php:8 | php-composer2 | Affected |
SUSE Timeline for this CVE
CVE page created: Thu Apr 16 00:01:14 2026CVE page last modified: Fri Apr 17 20:09:55 2026