GHSA-jm6m-4632-36hf

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

At a glance

Published
Updated
CVE
CVE-2023-43655
Aliases
BIT-composer-2023-43655
CVSS_V3
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

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.

Affected packages

PackageVersions
Packagist · composer/composerintroduced 0, fixed 1.10.27
Packagist · composer/composerintroduced 2.0.0, fixed 2.2.22
Packagist · composer/composerintroduced 2.3.0, fixed 2.6.4

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — GitHub Advisory Database