{"id":"CVE-2026-84361","state":"PUBLISHED","title":"Composer: Perforce source URL permits P4PORT `rsh:` command execution","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.","publishedAt":"2026-09-01T20:06:48.375Z","updatedAt":"2026-09-03T03:56:08.149Z","severity":{"score":7.7,"label":"High","version":"4.0","vector":"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","source":"GitHub_M"},"assigner":"GitHub_M","products":["composer composer"],"affected":[{"vendor":"composer","product":"composer","versions":[{"version":">= 1.0, < 2.2.30","status":"affected"},{"version":">= 2.3.0, < 2.10.3","status":"affected"}]}],"references":["https://github.com/composer/composer/security/advisories/GHSA-rvx4-ffvw-m9q3","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"],"weaknesses":["CWE-78"],"ingestedAt":"2026-10-29T20:13:15.269Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/84xxx/CVE-2026-84361.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-84361","state":"PUBLISHED","datePublished":"2026-09-01T20:06:48.375Z","dateUpdated":"2026-09-03T03:56:08.149Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-09-01T16:27:58.128Z"},"containers":{"cna":{"title":"Composer: Perforce source URL permits P4PORT `rsh:` command execution","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"composer","product":"composer","versions":[{"version":">= 1.0, < 2.2.30","status":"affected"},{"version":">= 2.3.0, < 2.10.3","status":"affected"}]}],"references":[{"url":"https://github.com/composer/composer/security/advisories/GHSA-rvx4-ffvw-m9q3","name":"https://github.com/composer/composer/security/advisories/GHSA-rvx4-ffvw-m9q3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/composer/composer/commit/0aac50528e83ed635cf788333635897469440220","name":"https://github.com/composer/composer/commit/0aac50528e83ed635cf788333635897469440220","tags":["x_refsource_MISC"]},{"url":"https://github.com/composer/composer/commit/199ad81a9cc6a2a5164ad79a8da26b2e19e521af","name":"https://github.com/composer/composer/commit/199ad81a9cc6a2a5164ad79a8da26b2e19e521af","tags":["x_refsource_MISC"]},{"url":"https://github.com/composer/composer/releases/tag/2.10.3","name":"https://github.com/composer/composer/releases/tag/2.10.3","tags":["x_refsource_MISC"]},{"url":"https://github.com/composer/composer/releases/tag/2.2.30","name":"https://github.com/composer/composer/releases/tag/2.2.30","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"PASSIVE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":7.7,"baseSeverity":"HIGH","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-78","lang":"en","description":"CWE-78: Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-09-01T20:06:48.375Z"},"source":{"advisory":"GHSA-rvx4-ffvw-m9q3","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-09-02T00:00:00+00:00","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3","id":"CVE-2026-84361"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-09-03T03:56:08.149Z"}}]}}}