Headline
GHSA-jm6m-4632-36hf: Composer Remote Code Execution vulnerability via web-accessible composer.phar
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.
- GitHub Advisory Database
- GitHub Reviewed
- CVE-2023-43655
Composer Remote Code Execution vulnerability via web-accessible composer.phar
Low severity GitHub Reviewed Published Sep 29, 2023 in composer/composer • Updated Sep 29, 2023
Package
composer composer/composer (Composer)
Affected versions
< 1.10.27
>= 2.0.0, < 2.2.22
>= 2.3.0, < 2.6.4
Patched versions
1.10.27
2.2.22
2.6.4
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.
References
- GHSA-jm6m-4632-36hf
- composer/composer@4fce147
- composer/composer@955a48e
- composer/composer@95e091c
Published to the GitHub Advisory Database
Sep 29, 2023
Last updated
Sep 29, 2023
Related news
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.