HIGH8.8
GHSA-jm6m-4632-36hf
Composer Remote Code Execution vulnerability via web-accessible composer.phar
Quick fix
GHSA-jm6m-4632-36hf — composer/composer: upgrade to the fixed version with the command below.
composer require composer/composer:^1.10.27Details
### Impact
Users publishing a composer.phar to a public web-accessible server where the composer.phar can be executed as a php file may be impacted if PHP also has `register_argc_argv` enabled in php.ini.
### Patches
2.6.4, 2.2.22 and 1.10.27 patch this vulnerability.
### Workarounds
Make sure `register_argc_argv` is disabled in php.ini, and avoid publishing composer.phar to the web as this really should not happen.
Are you affected?
Enter the version of the package you're using.
Affected packages
Packagist/composer/composer
Introduced in:
0Fixed in: 1.10.27Fix
composer require composer/composer:^1.10.27Packagist/composer/composer
Introduced in:
2.0.0Fixed in: 2.2.22Fix
composer require composer/composer:^2.2.22Packagist/composer/composer
Introduced in:
2.3.0Fixed in: 2.6.4Fix
composer require composer/composer:^2.6.4References
- https://github.com/composer/composer/security/advisories/GHSA-jm6m-4632-36hf[WEB]
- https://nvd.nist.gov/vuln/detail/CVE-2023-43655[ADVISORY]
- https://github.com/composer/composer/commit/4fce14795aba98e40b6c4f5047305aba17a6120d[WEB]
- https://github.com/composer/composer/commit/955a48e6319c8962e5cd421b07c00ab3c728968c[WEB]
- https://github.com/composer/composer/commit/95e091c921037b7b6564942845e7b738f6b95c9c[WEB]
- https://github.com/composer/composer[PACKAGE]
- https://lists.debian.org/debian-lts-announce/2024/03/msg00030.html[WEB]
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/66H2WKFUO255T3BZTL72TNYJYH2XM5FG[WEB]
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/7AWYAUZNH565NWPIKGEIYBWHYNM5JGAE[WEB]
- https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KFOPGPW2KS37O3KJWBRGTUWHTXCQXBS2[WEB]