Skip to main content
← All vulnerabilities
CVE-2023-43655GHSA-JM6M-4632-36HFBIT-COMPOSER-2023-43655

Remote Code Execution via web-accessible composer.phar

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 2.2.22, 1.10.27, 2.6.4
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: total

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: total

  3. Record last updated

Affected versions

  • composer composer

    From 2.0 · fixed in 2.2.22; fixed in 1.10.27

  • composer/composerPackagist

    fixed in 1.10.27

  • composer/composerPackagist

    From 2.0.0 · fixed in 2.2.22

  • composer/composerPackagist

    From 2.3.0 · fixed in 2.6.4

References 8

GitHub · composer/composer

lists.fedoraproject.org

lists.debian.org