{"id":"CVE-2023-43655","state":"PUBLISHED","title":"Remote Code Execution via web-accessible composer.phar","description":"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.","publishedAt":"2023-09-29T19:33:32.183Z","updatedAt":"2025-06-18T13:59:58.568Z","severity":{"score":6.4,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["composer composer"],"affected":[{"vendor":"composer","product":"composer","versions":[{"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"}]}],"references":["https://github.com/composer/composer/security/advisories/GHSA-jm6m-4632-36hf","https://github.com/composer/composer/commit/4fce14795aba98e40b6c4f5047305aba17a6120d","https://github.com/composer/composer/commit/955a48e6319c8962e5cd421b07c00ab3c728968c","https://github.com/composer/composer/commit/95e091c921037b7b6564942845e7b738f6b95c9c","https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KFOPGPW2KS37O3KJWBRGTUWHTXCQXBS2/","https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7AWYAUZNH565NWPIKGEIYBWHYNM5JGAE/","https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/66H2WKFUO255T3BZTL72TNYJYH2XM5FG/","https://lists.debian.org/debian-lts-announce/2024/03/msg00030.html"],"weaknesses":["CWE-74"],"ingestedAt":"2026-10-29T20:06:17.512Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2023/43xxx/CVE-2023-43655.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2023-43655","state":"PUBLISHED","datePublished":"2023-09-29T19:33:32.183Z","dateUpdated":"2025-06-18T13:59:58.568Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2023-09-20T15:35:38.147Z"},"containers":{"cna":{"title":"Remote Code Execution via web-accessible composer.phar","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"composer","product":"composer","versions":[{"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"}]}],"references":[{"url":"https://github.com/composer/composer/security/advisories/GHSA-jm6m-4632-36hf","name":"https://github.com/composer/composer/security/advisories/GHSA-jm6m-4632-36hf","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/composer/composer/commit/4fce14795aba98e40b6c4f5047305aba17a6120d","name":"https://github.com/composer/composer/commit/4fce14795aba98e40b6c4f5047305aba17a6120d","tags":["x_refsource_MISC"]},{"url":"https://github.com/composer/composer/commit/955a48e6319c8962e5cd421b07c00ab3c728968c","name":"https://github.com/composer/composer/commit/955a48e6319c8962e5cd421b07c00ab3c728968c","tags":["x_refsource_MISC"]},{"url":"https://github.com/composer/composer/commit/95e091c921037b7b6564942845e7b738f6b95c9c","name":"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/"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7AWYAUZNH565NWPIKGEIYBWHYNM5JGAE/"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/66H2WKFUO255T3BZTL72TNYJYH2XM5FG/"},{"url":"https://lists.debian.org/debian-lts-announce/2024/03/msg00030.html"}],"metrics":[{"cvssV3_1":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"HIGH","baseScore":6.4,"baseSeverity":"MEDIUM","confidentialityImpact":"HIGH","integrityImpact":"HIGH","privilegesRequired":"HIGH","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-74","lang":"en","description":"CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-03-27T10:05:55.605Z"},"source":{"advisory":"GHSA-jm6m-4632-36hf","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/composer/composer/security/advisories/GHSA-jm6m-4632-36hf","name":"https://github.com/composer/composer/security/advisories/GHSA-jm6m-4632-36hf","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/composer/composer/commit/4fce14795aba98e40b6c4f5047305aba17a6120d","name":"https://github.com/composer/composer/commit/4fce14795aba98e40b6c4f5047305aba17a6120d","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/composer/composer/commit/955a48e6319c8962e5cd421b07c00ab3c728968c","name":"https://github.com/composer/composer/commit/955a48e6319c8962e5cd421b07c00ab3c728968c","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/composer/composer/commit/95e091c921037b7b6564942845e7b738f6b95c9c","name":"https://github.com/composer/composer/commit/95e091c921037b7b6564942845e7b738f6b95c9c","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KFOPGPW2KS37O3KJWBRGTUWHTXCQXBS2/","tags":["x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7AWYAUZNH565NWPIKGEIYBWHYNM5JGAE/","tags":["x_transferred"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/66H2WKFUO255T3BZTL72TNYJYH2XM5FG/","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/03/msg00030.html","tags":["x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-02T19:44:43.787Z"}},{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"docker","product":"composer","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThanOrEqual":"2.6.4","versionType":"custom"}],"cpes":["cpe:2.3:a:docker:composer:-:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-09-23T16:22:54.194704Z","id":"CVE-2023-43655","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-06-18T13:59:58.568Z"}}]}}}