{"id":"CVE-2026-84361","published":"2026-09-01T20:06:48Z","modified":"2026-09-03T03:56:08Z","title":"Composer: Perforce source URL permits P4PORT `rsh:` command execution","vendor":"composer","product":"composer","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00502,"percentile":0.43891,"provenance":"source"},"cwes":[{"id":"CWE-78","name":"Improper Neutralization of Special Elements used in an OS Command"}],"references":[{"url":"https://github.com/composer/composer/security/advisories/GHSA-rvx4-ffvw-m9q3","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/composer/composer/commit/0aac50528e83ed635cf788333635897469440220","tags":["x_refsource_MISC"]},{"url":"https://github.com/composer/composer/commit/199ad81a9cc6a2a5164ad79a8da26b2e19e521af","tags":["x_refsource_MISC"]},{"url":"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","tags":["x_refsource_MISC"]}],"priority":{"score":14.2,"factors":[{"name":"EPSS percentile","points":8.78},{"name":"CVSS severity","points":5.39}]},"vendorSlug":"composer","affectedVersions":[{"vendor":"composer","product":"composer","versions":[">= 1.0, < 2.2.30",">= 2.3.0, < 2.10.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-09-02T00:00:00+00:00","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"composer/composer","vulnerableRanges":[">=2.3.0, <2.10.3",">=1.0, <2.2.30"],"patched":["2.10.3","2.2.30"],"from":["GHSA-rvx4-ffvw-m9q3"],"provenance":"source"}],"summary":{"text":"Composer, the PHP dependency manager, contains a flaw in its Perforce source handling (Composer\\Util\\Perforce), where the source URL is passed unvalidated to the p4 client as a P4PORT value. An attacker can supply a malicious dependency package from a custom Composer repository or an untrusted composer.lock file that uses an rsh: or jsh: address, causing a local command to run with the privileges of the user or CI account when the Perforce client is installed and the package is installed from source via composer install or composer update.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:36:34Z"},"euvd":{"id":"EUVD-2026-69608","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-composer-cve-2026-59946","parents":[{"from":"CVE-2026-59948","to":"CVE-2026-84361","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:composer/composer","fromFixed":"2.10.2","toFixed":"2.10.3","daysApart":55},{"kind":"same-code","provenance":"machine","files":["src/Composer/Package/Loader/ValidatingArrayLoader.php"],"commits":["https://github.com/composer/composer/commit/502c6c4f699802d9cf464728b3e8a95674f919a0","https://github.com/composer/composer/commit/c50b1efd13ebd73f6dca19b31424c5a02bf93cc1","https://github.com/composer/composer/commit/0aac50528e83ed635cf788333635897469440220","https://github.com/composer/composer/commit/199ad81a9cc6a2a5164ad79a8da26b2e19e521af"],"basis":"shared function","functions":["load"]}]},{"from":"CVE-2026-59946","to":"CVE-2026-84361","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["src/Composer/Package/Loader/ValidatingArrayLoader.php"],"commits":["https://github.com/composer/composer/commit/502c6c4f699802d9cf464728b3e8a95674f919a0","https://github.com/composer/composer/commit/c50b1efd13ebd73f6dca19b31424c5a02bf93cc1","https://github.com/composer/composer/commit/0aac50528e83ed635cf788333635897469440220","https://github.com/composer/composer/commit/199ad81a9cc6a2a5164ad79a8da26b2e19e521af"],"basis":"shared function","functions":["load"]}]}],"packageHistory":[{"cve":"CVE-2026-59947","published":"2026-07-08","fixed":"2.10.2","kev":false},{"cve":"CVE-2026-59948","published":"2026-07-08","fixed":"2.10.2","kev":false},{"cve":"CVE-2026-59944","published":"2026-09-16","fixed":"2.10.3","kev":false},{"cve":"CVE-2026-84361","published":"2026-09-01","fixed":"2.10.3","kev":false}],"package":"Packagist:composer/composer"}}