# Composer arbitrary command execution via a malicious package's Perforce source URL

High severity, published 2026-09-08. Update composer/composer to the fixed version of your branch (2.10.3, 2.2.30): composer update composer/composer.

Canonical URL: https://buzzphp.com/security/ghsa-rvx4-ffvw-m9q3 · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high |
| Published | 2026-09-08 |
| Updated | 2026-09-08 |
| CVE | [CVE-2026-84361](https://nvd.nist.gov/vuln/detail/CVE-2026-84361) |
| GHSA | [GHSA-rvx4-ffvw-m9q3](https://github.com/advisories/GHSA-rvx4-ffvw-m9q3) |
| Weakness | CWE-78 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| composer/composer | >= 2.3.0, < 2.10.3 or >= 1.0, < 2.2.30 | 2.10.3, 2.2.30 |

## What to do

Update composer/composer to the fixed version of your branch (2.10.3, 2.2.30): composer update composer/composer.

Check which version you run with `composer show composer/composer`, and every affected package with `composer audit`.

## About this advisory

Summary

If the p4 Perforce CLI client is installed, a malicious dependency package from a package repository allowing arbitrary perforce source URLs (packagist.org is safe) could execute arbitrary commands when running composer install or composer update. Composer passed a package's Perforce source address to the p4 CLI client without validating it. The p4 CLI client accepts addresses that mean "run this local command" instead of "connect to this server". This is remote code execution with the privileges of the user or CI account running Composer.

Am I affected?

You are only affected if all of the following are true:



## Links

- [GHSA-rvx4-ffvw-m9q3 on GitHub](https://github.com/advisories/GHSA-rvx4-ffvw-m9q3)
- [CVE-2026-84361 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-84361)
- [All Composer security advisories](https://buzzphp.com/security)
