BuzzPHP
LightDarkSystem

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

High severity. Published 8 September 2026. Update composer/composer to the fixed version of your branch (2.10.3, 2.2.30): composer update composer/composer.

Which versions are affected?

PackageAffected versionsFixed in
composer/composer (opens in a new tab)>= 2.3.0, < 2.10.3 | >= 1.0, < 2.2.302.10.3, 2.2.30

What should you do?

Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:

composer show composer/composer
composer audit

Advisory details

SeverityHigh
Published
Updated
CVECVE-2026-84361 (opens in a new tab)
GHSAGHSA-rvx4-ffvw-m9q3 (opens in a new tab)
WeaknessCWE-78

What the advisory says

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:

Source: GHSA-rvx4-ffvw-m9q3 (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .

Other recent advisories for this package

All Composer security advisories