RCE in Composer
CVE-2024-35241
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.
Vulnerability class: Command Injection (OS Command Injection)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.011 (62.9th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 63rd percentile — 62.9% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.011 · newest: 0.011 · change: 0.000
Affected products
- Composer — versions >= 2.0, < 2.2.24, >= 2.3, < 2.7.7
Weakness classification (CWE)
References
- github.com/composer/composer/security/advisories/GHSA-47f6-5gq3-vx9c
- github.com/composer/composer/commit/b93fc6ca437da35ae73d667d0618749c763b67d4
- github.com/composer/composer/commit/ee28354ca8d33c15949ad7de2ce6656ba3f68704
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/…
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/…
- af854a3a-2127-422b-91ae-364da2661108
- af854a3a-2127-422b-91ae-364da2661108
Frequently asked questions
- What is CVE-2024-35241?
- CVE-2024-35241 is a high-severity vulnerability in Composer, classified under Command Injection. CVSS score: 8.8/10. Published 2024-06-10.
- How severe is CVE-2024-35241?
- High severity. CVSS v3 base score is 8.8 out of 10.