CVE-2023-43655
HIGH 8.8CVSS 3.1Composer Remote Code Execution vulnerability via web-accessible composer.phar
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.
- Published
- 29 Sep 2023
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-74
- Also known as
- BIT-composer-2023-43655GHSA-jm6m-4632-36hf
- Sources
- NVDJSONOSV GHSA-jm6m-4632-36hfJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 6.4 | CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | getcomposer | composercpe:2.3:a:getcomposer:composer:*:*:*:*:*:*:*:* |
< 1.10.27 | 1.10.27 |
| NVD | getcomposer | composercpe:2.3:a:getcomposer:composer:*:*:*:*:*:*:*:* |
>= 2.0.0, < 2.2.21 | 2.2.21 |
| NVD | getcomposer | composercpe:2.3:a:getcomposer:composer:*:*:*:*:*:*:*:* |
>= 2.3.0, < 2.6.4 | 2.6.4 |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:* |
= 37 | |
| NVD | fedoraproject | fedoracpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:* |
= 38 | |
| OSV | Packagist | composer/composer | < 1.10.27 | 1.10.27 |
| OSV | Packagist | composer/composer | >= 2.0.0, < 2.2.22 | 2.2.22 |
| OSV | Packagist | composer/composer | >= 2.3.0, < 2.6.4 | 2.6.4 |
References
- https://github.com/composer/composer/commit/4fce14795aba98e40b6c4f5047305aba17a6120d · Patch, WEB
- https://github.com/composer/composer/commit/955a48e6319c8962e5cd421b07c00ab3c728968c · Patch, WEB
- https://github.com/composer/composer/commit/95e091c921037b7b6564942845e7b738f6b95c9c · Patch, WEB
- https://github.com/composer/composer/security/advisories/GHSA-jm6m-4632-36hf · Vendor Advisory, WEB
- https://lists.debian.org/debian-lts-announce/2024/03/msg00030.html · Mailing List, WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/66H2WKFUO255T3BZTL72TNYJYH2XM5FG/ · Mailing List, Third Party Advisory, WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7AWYAUZNH565NWPIKGEIYBWHYNM5JGAE/ · Mailing List, Third Party Advisory, WEB
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KFOPGPW2KS37O3KJWBRGTUWHTXCQXBS2/ · Mailing List, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-43655 · ADVISORY
- https://github.com/composer/composer · PACKAGE
History
- 25 Nov 2026 20:37 UTC · NVD: first stored (published 29 Sep 2023)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 29 Sep 2023)