Vulnerability
CVE-2024-35242
Composer is a dependency manager for PHP. On the 2.x branch prior to versions 2.2.24 and 2.7.7, the `composer install` command running inside a git/hg repository which has specially crafted branch names can lead to command injection. This requires cloning untrusted repositories. Patches are available in version 2.2.24 for 2.2 LTS or 2.7.7 for mainline. As a workaround, avoid cloning potentially compromised repositories.
15 advisories report this vulnerability, across 9 ecosystems.
Advisories
-
ALAS2023-2024-659
Amazon Linux 2023 - ALAS2023-2024-659: Important priority package update for composer
-
ALPINE-CVE-2024-35242
Composer is a dependency manager for PHP. On the 2.x branch prior to versions 2.2.24 and 2.7.7, the `composer install` command running inside a git/hg repository which has specially crafted branch names can lead to…
- ALPINE-EDGE-CVE-2024-35242
- CGA-qwx8-f8j4-g4p6
- CGA-x9p4-6mc7-h539
-
DEBIAN-CVE-2024-35242
Composer is a dependency manager for PHP. On the 2.x branch prior to versions 2.2.24 and 2.7.7, the `composer install` command running inside a git/hg repository which has specially crafted branch names can lead to…
-
DLA-3838-1
composer - security update
-
DSA-5715-1
composer - security update
-
GHSA-v9qv-c7wm-wgmf
Composer has multiple command injections via malicious git/hg branch names
-
SUSE-SU-2024:2106-1
Security update for php-composer2
-
SUSE-SU-2024:2107-1
Security update for php-composer2
-
SUSE-SU-2026:3105-1
Security update for php-composer2
-
UBUNTU-CVE-2024-35242
Composer is a dependency manager for PHP. On the 2.x branch prior to versions 2.2.24 and 2.7.7, the `composer install` command running inside a git/hg repository which has specially crafted branch names can lead to…
-
USN-7603-1
composer vulnerabilities
-
openSUSE-SU-2024:14040-1
php-composer2-2.7.7-1.1 on GA media
References
- https://github.com/composer/composer/commit/6bd43dff859c597c09bd03a7e7d6443822d0a396
- https://github.com/composer/composer/commit/fc57b93603d7d90b71ca8ec77b1c8a9171fdb467
- https://github.com/composer/composer/security/advisories/GHSA-v9qv-c7wm-wgmf
- https://lists.fedoraproject.org/archives/list/[email protected]/message/PO4MU2BC7VR6LMHEX4X7DKGHVFXZV2MC/
- https://lists.fedoraproject.org/archives/list/[email protected]/message/VLPJHM2WWSYU2F6KHW2BYFGYL4IGTKHC/