Remote Code Execution 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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2023-43655
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 8 Nov 2026, 01:04 UTC · Revision 1
Source evidence
Remote Code Execution via web-accessible composer.phar
core-osv · Original sourcePublished 29 Sept 2023, 19:33 UTC
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.
osv:CVE-2023-43655
Complete source record
{
"id": "3d22f832b23e89111b0589466f0c19afd2ef25871bb9737d774990a6c4908159",
"url": "https://osv.dev/vulnerability/CVE-2023-43655",
"method": "structured",
"payload": {
"kind": "advisory",
"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.",
"evidence": "osv:CVE-2023-43655",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2023-43655",
"aliases": [
"BIT-composer-2023-43655",
"CVE-2023-43655",
"GHSA-jm6m-4632-36hf"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/composer/composer",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "f8f49191eec76f039b466aa1f161406fe43aff50"
},
{
"introduced": "378b34c5e33c71d194f33e1b73a62ba22148ff13"
},
{
"fixed": "978198befc71de0b18fc1fc5a472c03b184b504a"
},
{
"introduced": "934ee6eed3c3ffd0aeccef7c1d255adcf0752b24"
},
{
"fixed": "d75d17c16a863438027d1d96401cddcd6aa5bb60"
},
{
"fixed": "4fce14795aba98e40b6c4f5047305aba17a6120d"
},
{
"fixed": "955a48e6319c8962e5cd421b07c00ab3c728968c"
},
{
"fixed": "95e091c921037b7b6564942845e7b738f6b95c9c"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:getcomposer:composer:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "1.10.27"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:getcomposer:composer:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.0.0"
},
{
"fixed": "2.2.21"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:getcomposer:composer:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "2.3.0"
},
{
"fixed": "2.6.4"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "4fce14795aba98e40b6c4f5047305aba17a6120d"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "955a48e6319c8962e5cd421b07c00ab3c728968c"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "95e091c921037b7b6564942845e7b738f6b95c9c"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"2.6.3",
"2.6.2",
"2.6.1",
"2.6.0",
"2.2.20",
"2.2.19",
"2.5.2",
"2.5.1",
"2.5.0",
"2.4.1",
"2.2.18",
"2.4.0",
"2.4.0-RC1",
"2.2.17",
"2.2.16",
"2.2.15",
"2.2.14",
"2.2.13",
"2.3.5",
"2.2.12",
"1.10.26",
"2.3.4",
"2.3.3",
"2.2.11",
"2.3.2",
"2.3.1",
"2.3.0",
"2.2.10",
"2.2.9",
"2.2.8",
"2.2.7",
"2.2.6",
"1.10.25",
"2.2.4",
"2.2.3",
"2.2.2",
"2.2.1",
"2.2.0",
"1.10.24",
"2.2.0-RC1",
"1.0.0-alpha10",
"1.0.0-alpha9"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-43655.json"
}
}
],
"modified": "2026-10-28T02:30:52.735589116Z",
"provider": "osv",
"references": [
"https://lists.debian.org/debian-lts-announce/2024/03/msg00030.html",
"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/66H2WKFUO255T3BZTL72TNYJYH2XM5FG/",
"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/KFOPGPW2KS37O3KJWBRGTUWHTXCQXBS2/",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/43xxx/CVE-2023-43655.json",
"https://github.com/composer/composer/security/advisories/GHSA-jm6m-4632-36hf",
"https://nvd.nist.gov/vuln/detail/CVE-2023-43655",
"https://github.com/composer/composer/commit/4fce14795aba98e40b6c4f5047305aba17a6120d",
"https://github.com/composer/composer/commit/955a48e6319c8962e5cd421b07c00ab3c728968c",
"https://github.com/composer/composer/commit/95e091c921037b7b6564942845e7b738f6b95c9c"
],
"provider_metadata": {
"cwe_ids": [
"CWE-74"
],
"cna_assigner": "GitHub_M",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"introduced": "2.6.4, 2.2.21, 1.10.27"
},
{
"last_affected": "2.6.4, 2.2.21, 1.10.27"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandaloneSingleVersion"
}
]
}
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/43xxx/CVE-2023-43655.json"
}
},
"related_cves": [
{
"value": "CVE-2023-43655",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 521187,
"published_at": "2023-09-29T19:33:32.183+00:00"
}