CVE-2026-84361
Composer: Perforce source URL permits P4PORT `rsh:` command execution
Reported by github_m · Published September 1, 2026
composer/composer is fixed in 2.10.3 and 2.2.30 (Packagist)
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| composer/composer | Packagist | 2.10.3, 2.2.30 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| composer | composer | >= 1.0, < 2.2.30, >= 2.3.0, < 2.10.3 |
| composer | composer | 1.0.0, 2.3.0 |
| composer | composer | 1.0, 2.3.0 |
| alpine | composer | 0 |
| amazon:2023 | composer | 0 |
Timeline
- Sep 1, 2026 CVE Published
- Sep 2, 2026 EPSS Score (28 in total, the first dated here)
- Oct 30, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-84361
vulnetix vdb fixes CVE-2026-84361
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-84361/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/composer/composer/security/advisories/GHSA-rvx4-ffvw-m9q3 x_refsource_CONFIRM
- https://github.com/composer/composer/commit/0aac50528e83ed635cf788333635897469440220 x_refsource_MISC
- https://github.com/composer/composer/commit/199ad81a9cc6a2a5164ad79a8da26b2e19e521af x_refsource_MISC
- https://github.com/composer/composer/releases/tag/2.10.3 x_refsource_MISC
- https://github.com/composer/composer/releases/tag/2.2.30 x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2026-84361 advisory
- https://github.com/advisories/GHSA-rvx4-ffvw-m9q3 advisory