CVE-2024-35241

EUVD-2024-1909
Composer is a dependency manager for PHP. On the 2.x branch prior to versions 2.2.24 and 2.7.7, the `status`, `reinstall` and `remove` commands with packages installed from source via git containing specially crafted branch names in the repository can be used to execute code. Patches for this issue are available in version 2.2.24 for 2.2 LTS or 2.7.7 for mainline. As a workaround, avoid installing dependencies via git by using `--prefer-dist` or the `preferred-install: dist` config setting.
Command Injection
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
8.8 HIGH
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Base Score
CVSS 3.x
EPSS Score
Percentile: 61.89%
Early Detection
Affected products identified ahead of NVD analysis through intelligence sources.
VendorProductVersionSource
getcomposercomposer
2.0 ≤
𝑥
< 2.2.24
ADP
getcomposercomposer
2.3 ≤
𝑥
< 2.7.7
ADP
Debian logo
Debian Releases
Debian Product
Codename
composer
bookworm
2.5.5-1+deb12u2
fixed
bookworm (security)
2.5.5-1+deb12u2
fixed
bullseye
2.0.9-2+deb11u4
fixed
bullseye (security)
2.0.9-2+deb11u4
fixed
forky
2.9.2-1
fixed
sid
2.9.3-1
fixed
trixie
2.8.8-1
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
composer
bionic
Fixed 1.6.3-1ubuntu0.1~esm2
released
focal
Fixed 1.10.1-1ubuntu0.1~esm2
released
jammy
Fixed 2.2.6-2ubuntu4+esm1
released
noble
Fixed 2.7.1-2ubuntu0.1~esm1
released
oracular
not-affected
plucky
not-affected
questing
not-affected
resolute
not-affected
xenial
Fixed 1.0.0~beta2-1ubuntu0.1~esm2
released
Amazon Linux logo
Amazon Linux Releases
Amazon Package
Release
composer
Amazon Linux 2023
0:2.5.8-2.amzn2023.0.3
fixed