CVE-2026-84361
This CVE describes malicious code, not an ordinary vulnerability.
- composer /
composer/composer— Composer arbitrary command execution via a malicious package's Perforce source URL
If you have any of these packages installed, remove and rotate any credentials they could have accessed. See the malware feed for full details.
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
composer/composerPackagist | >= 2.3.0, < 2.10.3 | 2.10.3 |
composer/composerPackagist | >= 1.0, < 2.2.30 | 2.2.30 |
Affected products
4- osv-coords3 versionspkg:bitnami/composerpkg:rpm/opensuse/php-composer2&distro=openSUSE%20Leap%2016.0pkg:rpm/opensuse/php-composer2&distro=openSUSE%20Tumbleweed
>= 1.0.0, < 2.2.30+ 2 more
- (no CPE)range: >= 1.0.0, < 2.2.30
- (no CPE)range: < 2.8.9-160000.5.1
- (no CPE)range: < 2.10.3-2.1
Patches
Vulnerability mechanics
References
7- github.com/advisories/GHSA-rvx4-ffvw-m9q3ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2026-84361ghsaADVISORY
- github.com/composer/composer/commit/0aac50528e83ed635cf788333635897469440220nvdWEB
- github.com/composer/composer/commit/199ad81a9cc6a2a5164ad79a8da26b2e19e521afnvdWEB
- github.com/composer/composer/releases/tag/2.10.3nvdWEB
- github.com/composer/composer/releases/tag/2.2.30nvdWEB
- github.com/composer/composer/security/advisories/GHSA-rvx4-ffvw-m9q3nvdWEB
News mentions
0No linked articles in our index yet.