{"id":"CVE-2023-43655","published":"2023-09-29T19:33:32Z","modified":"2025-06-18T13:59:58Z","title":"Remote Code Execution via web-accessible composer.phar","vendor":"composer","product":"composer","tier":"tail","description":{"text":"Composer is a dependency manager for PHP. Users publishing a composer.phar to a public web-accessible server where the composer.phar can be executed as a php file may be subject to a remote code execution vulnerability if PHP also has `register_argc_argv` enabled in php.ini. Versions 2.6.4, 2.2.22 and 1.10.27 patch this vulnerability. Users are advised to upgrade. Users unable to upgrade should make sure `register_argc_argv` is disabled in php.ini, and avoid publishing composer.phar to the web as this is not best practice.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01532,"percentile":0.75416,"provenance":"source"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"references":[{"url":"https://github.com/composer/composer/security/advisories/GHSA-jm6m-4632-36hf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/composer/composer/commit/4fce14795aba98e40b6c4f5047305aba17a6120d","tags":["x_refsource_MISC"]},{"url":"https://github.com/composer/composer/commit/955a48e6319c8962e5cd421b07c00ab3c728968c","tags":["x_refsource_MISC"]},{"url":"https://github.com/composer/composer/commit/95e091c921037b7b6564942845e7b738f6b95c9c","tags":["x_refsource_MISC"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KFOPGPW2KS37O3KJWBRGTUWHTXCQXBS2/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7AWYAUZNH565NWPIKGEIYBWHYNM5JGAE/","tags":[]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/66H2WKFUO255T3BZTL72TNYJYH2XM5FG/","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2024/03/msg00030.html","tags":[]}],"priority":{"score":19.6,"factors":[{"name":"EPSS percentile","points":15.08},{"name":"CVSS severity","points":4.48}]},"vendorSlug":"composer","affectedVersions":[{"vendor":"composer","product":"composer","versions":["2.6.4, 2.2.21, 1.10.27",">= 2.0, < 2.2.22","< 1.10.27"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2024-09-23T16:22:54.194704Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"composer/composer","vulnerableRanges":["<1.10.27",">=2.0.0, <2.2.22",">=2.3.0, <2.6.4"],"patched":["1.10.27","2.2.22","2.6.4"],"from":["GHSA-jm6m-4632-36hf"],"provenance":"source"}],"summary":{"text":"Composer, the PHP dependency manager, contains a flaw that affects its composer.phar file when that file is published to a public web-accessible server and can be run as a PHP script. An attacker can achieve remote code execution, but only if PHP has register_argc_argv enabled in php.ini, and the attack requires high-complexity conditions, high privileges, and user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:17:32Z"},"euvd":{"id":"EUVD-2023-2538","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-29472","published":"2021-04-27","fixed":"2.0.13","kev":false},{"cve":"CVE-2021-41116","published":"2021-10-05","fixed":"2.1.9","kev":false},{"cve":"CVE-2022-24828","published":"2022-04-13","fixed":"2.3.5","kev":false,"link":{"from":"CVE-2022-24828","to":"CVE-2023-43655","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:composer/composer","fromFixed":"1.10.26","toFixed":"1.10.27","daysApart":534},{"kind":"version-step","provenance":"source","package":"Packagist:composer/composer","fromFixed":"2.2.12","toFixed":"2.2.22","daysApart":534}]}},{"cve":"CVE-2023-43655","published":"2023-09-29","fixed":"2.6.4","kev":false},{"cve":"CVE-2024-24821","published":"2024-02-08","fixed":"2.7.0","kev":false,"link":{"from":"CVE-2023-43655","to":"CVE-2024-24821","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:composer/composer","fromFixed":"2.2.22","toFixed":"2.2.23","daysApart":132}]}},{"cve":"CVE-2024-35241","published":"2024-06-10","fixed":"2.7.7","kev":false},{"cve":"CVE-2024-35242","published":"2024-06-10","fixed":"2.7.7","kev":false}],"package":"Packagist:composer/composer"}}