{"id":"CVE-2023-43655","aliases":["CVE-2023-43655","GHSA-jm6m-4632-36hf","BIT-COMPOSER-2023-43655"],"related":[],"kind":"vulnerability","state":"published","title":"Remote Code Execution via web-accessible composer.phar","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nUsers publishing a composer.phar to a public web-accessible server where the composer.phar can be executed as a php file may be impacted if PHP also has `register_argc_argv` enabled in php.ini.\n\n### Patches\n\n2.6.4, 2.2.22 and 1.10.27 patch this vulnerability.\n\n### Workarounds\n\nMake sure `register_argc_argv` is disabled in php.ini, and avoid publishing composer.phar to the web as this really should not happen.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Composer es un administrador de dependencias para PHP. Los usuarios que publican un composer.phar en un servidor público accesible desde la web donde se puede ejecutar el composer.phar como un archivo php pueden estar sujetos a una vulnerabilidad de ejecución remota de código si PHP también tiene `register_argc_argv` habilitado en php.ini. Las versiones 2.6.4, 2.2.22 y 1.10.27 corrigen esta vulnerabilidad. Se recomienda a los usuarios que actualicen. Los usuarios que no puedan actualizar deben asegurarse de que `register_argc_argv` esté deshabilitado en php.ini y evitar publicar composer.phar en la web, ya que esta no es la mejor práctica.","source":"nvd"}],"published":"2023-09-29T19:33:32.183Z","modified":"2026-09-08T08:45:57.166Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H","score":6.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H","score":6.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-74"],"affected":[{"ranges":[{"version":"2.6.4, 2.2.21, 1.10.27","status":"affected"},{"version":">= 2.0, < 2.2.22","status":"affected"},{"version":"< 1.10.27","status":"affected"}],"vendor":"composer","product":"composer","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","lastAffected":"2.6.4","status":"affected"}],"vendor":"docker","product":"composer","cpe":"cpe:2.3:a:docker:composer:-:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.10.27"}],"ecosystem":"Packagist","package":"composer/composer","purl":"pkg:composer/composer/composer","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.0.0","status":"affected","fixed":"2.2.22"}],"ecosystem":"Packagist","package":"composer/composer","purl":"pkg:composer/composer/composer","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"2.3.0","status":"affected","fixed":"2.6.4"}],"ecosystem":"Packagist","package":"composer/composer","purl":"pkg:composer/composer/composer","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"1.10.27"},{"status":"affected","introduced":"2.0.0","fixed":"2.2.21"},{"status":"affected","introduced":"2.3.0","fixed":"2.6.4"}],"vendor":"getcomposer","product":"composer","cpe":"cpe:2.3:a:getcomposer:composer:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"37"},{"status":"affected","version":"38"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.10.27"},{"type":"semver","introduced":"2.0.0","status":"affected","fixed":"2.2.21"},{"type":"semver","introduced":"2.3.0","status":"affected","fixed":"2.6.4"}],"ecosystem":"Bitnami","package":"composer","purl":"pkg:bitnami/composer","source":"bitnami"}],"references":[{"url":"https://github.com/composer/composer/security/advisories/GHSA-jm6m-4632-36hf","tags":["advisory","vendor-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/composer/composer/commit/4fce14795aba98e40b6c4f5047305aba17a6120d","tags":["fix","patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/composer/composer/commit/955a48e6319c8962e5cd421b07c00ab3c728968c","tags":["fix","patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/composer/composer/commit/95e091c921037b7b6564942845e7b738f6b95c9c","tags":["fix","patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KFOPGPW2KS37O3KJWBRGTUWHTXCQXBS2/","tags":["advisory","mailing-list","third-party-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7AWYAUZNH565NWPIKGEIYBWHYNM5JGAE/","tags":["advisory","mailing-list","third-party-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/66H2WKFUO255T3BZTL72TNYJYH2XM5FG/","tags":["advisory","mailing-list","third-party-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/03/msg00030.html","tags":["discussion","mailing-list","web","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-43655","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/composer/composer","tags":["package"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/66H2WKFUO255T3BZTL72TNYJYH2XM5FG","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7AWYAUZNH565NWPIKGEIYBWHYNM5JGAE","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KFOPGPW2KS37O3KJWBRGTUWHTXCQXBS2","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2024-09-23T16:22:54.194Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-43655","url":"https://www.cve.org/CVERecord?id=CVE-2023-43655","licence":"CVE Terms of Use","modified":"2025-06-18T13:59:58.568Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-jm6m-4632-36hf","url":"https://github.com/advisories/GHSA-jm6m-4632-36hf","licence":"CC-BY-4.0","modified":"2025-02-13T19:36:33.563Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-43655","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-43655","licence":"Public domain","modified":"2026-06-17T06:26:09.867Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-COMPOSER-2023-43655","url":"https://osv.dev/vulnerability/BIT-COMPOSER-2023-43655","licence":"Apache-2.0","modified":"2026-09-08T08:45:57.166Z"}],"updatedAt":"2026-11-25T22:58:28.291Z","epss":{"score":0.01899,"percentile":0.80287,"date":"2026-11-30T12:00:22.000Z"}}