Vulnerability
CVE-2026-84361
Composer is a dependency Manager for the PHP language. From 1.0 until 2.2.30 and 2.10.3, a malicious dependency package from a custom Composer repository or an untrusted composer.lock file could set source.type to perforce and source.url to an rsh: or jsh: P4PORT value. When the Perforce p4 client was installed and Composer installed the package from source through composer install or composer update, including --prefer-source, Composer\Util\Perforce passed the address to p4 without validation, causing p4 to run a local command with the privileges of the user or CI account. Packagist.org does not permit Perforce source metadata. This issue is fixed in versions 2.2.30 and 2.10.3.
13 advisories report this vulnerability, across 8 ecosystems.
Advisories
-
ALAS2023-2026-3136
Amazon Linux 2023 - ALAS2023-2026-3136: Important priority package update for composer
-
ALPINE-CVE-2026-84361
Composer is a dependency Manager for the PHP language. From 1.0 until 2.2.30 and 2.10.3, a malicious dependency package from a custom Composer repository or an untrusted composer.lock file could set source.type to…
- ALPINE-EDGE-CVE-2026-84361
-
DEBIAN-CVE-2026-84361
Composer is a dependency Manager for the PHP language. From 1.0 until 2.2.30 and 2.10.3, a malicious dependency package from a custom Composer repository or an untrusted composer.lock file could set source.type to…
-
GHSA-rvx4-ffvw-m9q3
Composer arbitrary command execution via a malicious package's Perforce source URL
-
RHSA-2026:63151
Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
-
SUSE-SU-2026:23635-1
Security update for php-composer2
-
SUSE-SU-2026:4059-1
Security update for php-composer2
-
SUSE-SU-2026:4283-1
Security update for php-composer2
-
SUSEVEX-CVE-2026-84361
Composer is a dependency Manager for the PHP language. From 1.0 until 2.2.30 and 2.10.3, a malicious dependency package from a custom Composer repository or an untrusted composer.lock file could set source.type to…
-
UBUNTU-CVE-2026-84361
Composer is a dependency Manager for the PHP language. From 1.0 until 2.2.30 and 2.10.3, a malicious dependency package from a custom Composer repository or an untrusted composer.lock file could set source.type to…
-
openSUSE-SU-2026:11689-1
php-composer2-2.10.3-2.1 on GA media
-
openSUSE-SU-2026:21778-1
Security update for php-composer2
References
- https://github.com/composer/composer/commit/0aac50528e83ed635cf788333635897469440220
- https://github.com/composer/composer/commit/199ad81a9cc6a2a5164ad79a8da26b2e19e521af
- https://github.com/composer/composer/releases/tag/2.10.3
- https://github.com/composer/composer/releases/tag/2.2.30
- https://github.com/composer/composer/security/advisories/GHSA-rvx4-ffvw-m9q3