CVE-2023-43655
published medium CVSS 3.1 · 6.4Remote Code Execution via web-accessible composer.phar
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| composer | — | composer2.6.4, 2.2.21, 1.10.27 · >= 2.0, < 2.2.22 · < 1.10.27 | Affected | Not stated | GitHub_M |
| docker | — | composer0 through 2.6.4 · Other versions: unknown | Affected | Not stated | CISA-ADP |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-384 | Fixed | Not stated | Amazon Linux assessment |
| Alpine Linux | edge | composer | Fixed | 2.6.4-r0 | Package fix record |
| Debian | buster | composer | Advisory build | 1.8.4-1+deb10u3 | DLA-3777-1 |
| Ubuntu | bionic | composer | Advisory build | 1.6.3-1ubuntu0.1~esm2 | USN-7603-1 |
| SUSE / openSUSE | SLE-15-SP4 | php-composer2noarch | Advisory build | 2.2.27-150400.3.18.1 | SUSE-SU-2026:1970-1 |
| Amazon Linux | AL2023 | composernoarch | Listed in advisory | Not stated | ALAS2023-2023-384 |
Show 20 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.18 | composer | Fixed | 2.6.4-r0 | Package fix record |
| Alpine Linux | v3.19 | composer | Fixed | 2.6.4-r0 | Package fix record |
| Alpine Linux | v3.20 | composer | Fixed | 2.6.4-r0 | Package fix record |
| Alpine Linux | v3.21 | composer | Fixed | 2.6.4-r0 | Package fix record |
| Alpine Linux | v3.22 | composer | Fixed | 2.6.4-r0 | Package fix record |
| Alpine Linux | v3.23 | composer | Fixed | 2.6.4-r0 | Package fix record |
| Alpine Linux | v3.24 | composer | Fixed | 2.6.4-r0 | Package fix record |
| Ubuntu | focal | composer | Advisory build | 1.10.1-1ubuntu0.1~esm2 | USN-7603-1 |
| Ubuntu | jammy | composer | Advisory build | 2.2.6-2ubuntu4+esm1 | USN-7603-1 |
| Ubuntu | xenial | composer | Advisory build | 1.0.0~beta2-1ubuntu0.1~esm2 | USN-7603-1 |
| SUSE / openSUSE | SLE-15-SP4 | php-composer2noarch | Advisory build | 2.2.3-150400.3.6.1 | SUSE-SU-2023:4041-1 |
| SUSE / openSUSE | SLE-15-SP5 | php-composer2noarch | Advisory build | 2.2.27-150400.3.18.1 | SUSE-SU-2026:1970-1 |
| SUSE / openSUSE | SLE-15-SP5 | php-composer2noarch | Advisory build | 2.2.3-150400.3.6.1 | SUSE-SU-2023:4041-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | php-composer2noarch | Advisory build | 2.2.3-150400.3.6.1 | SUSE-SU-2023:4041-1 |
| SUSE / openSUSE | openSUSE-Leap-15.5 | php-composer2noarch | Advisory build | 2.2.3-150400.3.6.1 | SUSE-SU-2023:4041-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | php-composer2aarch64 | Advisory build | 2.6.4-1.1 | OPENSUSE-SU-2024:13290-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | php-composer2ppc64le | Advisory build | 2.6.4-1.1 | OPENSUSE-SU-2024:13290-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | php-composer2s390x | Advisory build | 2.6.4-1.1 | OPENSUSE-SU-2024:13290-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | php-composer2x86_64 | Advisory build | 2.6.4-1.1 | OPENSUSE-SU-2024:13290-1 |
| Amazon Linux | AL2023 | composersrc | Listed in advisory | Not stated | ALAS2023-2023-384 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 6.4 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| composer | composer | 2.6.4, 2.2.21, 1.10.27 (affected)>= 2.0, < 2.2.22 (affected)< 1.10.27 (affected) | GitHub_M · cna |
| docker | composer | 0 through 2.6.4 (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-74 CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
References
8- https://github.com/composer/composer/commit/4fce14795aba98e40b6c4f5047305aba17a6120d
- https://github.com/composer/composer/commit/955a48e6319c8962e5cd421b07c00ab3c728968c
- https://github.com/composer/composer/commit/95e091c921037b7b6564942845e7b738f6b95c9c
- https://github.com/composer/composer/security/advisories/GHSA-jm6m-4632-36hf
- https://lists.debian.org/debian-lts-announce/2024/03/msg00030.html
- https://lists.fedoraproject.org/archives/list/[email protected]/message/66H2WKFUO255T3BZTL72TNYJYH2XM5FG/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/7AWYAUZNH565NWPIKGEIYBWHYNM5JGAE/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/KFOPGPW2KS37O3KJWBRGTUWHTXCQXBS2/
Provider assertions
3GitHub_M · cna
Remote Code Execution via web-accessible composer.phar
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 55dae12688c8f7781f799fea2e8f066679b0190d09ebcc7b9db85499036cc794
- Ingested
- 23 Sep 2026, 08:12:09 UTC
- Source record
- Official CVE record