All reports
High

Composer Remote Code Execution vulnerability via web-accessible composer.phar

Affected versions

Affected versions
>= 2.3.0, < 2.6.4
Fixed version
2.6.4
Affected versions
< 1.10.27
Fixed version
1.10.27
Affected versions
>= 2.0.0, < 2.2.22
Fixed version
2.2.22

Exploitation

CVE-2023-43655

Probability of exploitation in the next 30 days: 1.53%

FIRST EPSS · 2026-11-19

Description

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.

Links

Credits

  • thomas-chauchefoin-sonarsource