CVE-2023-43655
Remote Code Execution via web-accessible composer.phar
Reported by github_m · Published September 29, 2023
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.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| composer | composer | 2.6.4, 2.2.21, 1.10.27, >= 2.0, < 2.2.22, < 1.10.27 |
| amazon:2023 | composer | 0 |
| composer | composer | 2.3.0, 0, 2.0.0 |
| composer | composer | 0, 1.10.27, 2.0 |
| alpine | composer | 0 |
| docker | composer | 0 |
Timeline
- Sep 29, 2023 CVE Published
- Sep 30, 2023 EPSS Score (30 in total, the first dated here)
- Sep 30, 2023 PoC Published
- Apr 23, 2025 CVE Updated
- Feb 4, 2026 Security Advisory
- Aug 2, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-43655
vulnetix vdb fixes CVE-2023-43655
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-43655/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://github.com/composer/composer/security/advisories/GHSA-jm6m-4632-36hf x_refsource_CONFIRM
- https://github.com/composer/composer/commit/4fce14795aba98e40b6c4f5047305aba17a6120d x_refsource_MISC
- https://github.com/composer/composer/commit/955a48e6319c8962e5cd421b07c00ab3c728968c x_refsource_MISC
- https://github.com/composer/composer/commit/95e091c921037b7b6564942845e7b738f6b95c9c x_refsource_MISC
- https://nvd.nist.gov/vuln/detail/CVE-2023-43655 advisory
- https://github.com/advisories/GHSA-jm6m-4632-36hf advisory
- https://github.com/composer/composer url
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/66H2WKFUO255T3BZTL72TNYJYH2XM5FG 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/KFOPGPW2KS37O3KJWBRGTUWHTXCQXBS2 url