Vulnerability in Composer
CVE-2023-43655
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.4 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.015, 75.2th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Composer — versions 2.6.4, 2.2.21, 1.10.27, >= 2.0, < 2.2.22, < 1.10.27
- Getcomposer Composer
- Debian Linux — versions 10.0
- Fedoraproject Fedora — versions 37, 38
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (fkie-cad/nvd-json-data-feeds). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- https://github.com/composer/composer/security/advisories/GHSA-jm6m-4632-36hf (Vendor Advisory)
- https://github.com/composer/composer/commit/4fce14795aba98e40b6c4f5047305aba17a6120d (Patch)
- https://github.com/composer/composer/commit/955a48e6319c8962e5cd421b07c00ab3c728968c (Patch)
- https://github.com/composer/composer/commit/95e091c921037b7b6564942845e7b738f6b95c9c (Patch)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (Mailing List, Third Party Advisory)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (Mailing List, Third Party Advisory)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (Mailing List, Third Party Advisory)
- lists.debian.org/debian-lts-announce/2024/03/msg00030.html (Mailing List)