# CVE-2026-84361: Composer: Perforce source URL permits P4PORT `rsh:` command execution

- Severity: High 7.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.50%, higher than 44% of CVEs (2026-12-01)
- Published: 2026-09-01T20:06:48.375Z
- Modified: 2026-09-10T09:30:07.136Z
- Also known as: GHSA-rvx4-ffvw-m9q3, BIT-COMPOSER-2026-84361
- Weaknesses: CWE-78
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- composer composer: >= 1.0, < 2.2.30; >= 2.3.0, < 2.10.3
- composer/composer (Packagist): from 2.3.0 before 2.10.3; from 1.0 before 2.2.30
- composer (Bitnami): from 1.0.0 before 2.2.30; from 2.3.0 before 2.10.3

## Every score

- GitHub_M: CVSS:4.0 7.7 High `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`
- GitHub: CVSS:4.0 High `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`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/composer/composer/security/advisories/GHSA-rvx4-ffvw-m9q3> (web)
- <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://nvd.nist.gov/vuln/detail/CVE-2026-84361> (advisory, web)
- <https://github.com/composer/composer> (package)

## Sources

- CVE List: [CVE-2026-84361](https://www.cve.org/CVERecord?id=CVE-2026-84361), CVE Terms of Use, modified 2026-09-03
- GitHub Advisory Database: [GHSA-rvx4-ffvw-m9q3](https://github.com/advisories/GHSA-rvx4-ffvw-m9q3), CC-BY-4.0, modified 2026-09-08
- NVD: [CVE-2026-84361](https://nvd.nist.gov/vuln/detail/CVE-2026-84361), Public domain, modified 2026-09-09
- Bitnami Vulnerability Database: [BIT-COMPOSER-2026-84361](https://osv.dev/vulnerability/BIT-COMPOSER-2026-84361), Apache-2.0, modified 2026-09-10

---

Page: https://cve.day/CVE-2026-84361 · Whole record: https://cve.day/CVE-2026-84361.json · Rebuilt by cve.day 2026-11-25T22:59:36.032Z
