CVE-2026-84361
HIGH 7.7CVSS 4.0Composer arbitrary command execution via a malicious package's Perforce source URL
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.
- Published
- 1 Sep 2026
- Last modified
- 9 Sep 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-78
- Also known as
- BIT-composer-2026-84361GHSA-rvx4-ffvw-m9q3
- Sources
- NVDJSONOSV GHSA-rvx4-ffvw-m9q3JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 7.7 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Packagist | composer/composer | >= 2.3.0, < 2.10.3 | 2.10.3 |
| OSV | Packagist | composer/composer | >= 1.0, < 2.2.30 | 2.2.30 |
References
- https://github.com/composer/composer/commit/0aac50528e83ed635cf788333635897469440220 · WEB
- https://github.com/composer/composer/commit/199ad81a9cc6a2a5164ad79a8da26b2e19e521af · WEB
- https://github.com/composer/composer/releases/tag/2.10.3 · WEB
- https://github.com/composer/composer/releases/tag/2.2.30 · WEB
- https://github.com/composer/composer/security/advisories/GHSA-rvx4-ffvw-m9q3 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-84361 · ADVISORY
- https://github.com/composer/composer · PACKAGE
History
- 25 Nov 2026 21:05 UTC · NVD: first stored (published 1 Sep 2026)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 8 Sep 2026)