CVE-2024-35241

Publication date 10 June 2024

Last updated 2 July 2025


Ubuntu priority

Cvss 3 Severity Score

8.8 · High

Score breakdown

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.

Status

Package Ubuntu Release Status
composer 25.04 plucky
Not affected
24.10 oracular
Not affected
24.04 LTS noble
Fixed 2.7.1-2ubuntu0.1~esm1
22.04 LTS jammy
Fixed 2.2.6-2ubuntu4+esm1
20.04 LTS focal
Fixed 1.10.1-1ubuntu0.1~esm2
18.04 LTS bionic
Fixed 1.6.3-1ubuntu0.1~esm2
16.04 LTS xenial
Fixed 1.0.0~beta2-1ubuntu0.1~esm2

Get expanded security coverage with Ubuntu Pro

Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.

Get Ubuntu Pro

Severity score breakdown

Parameter Value
Base score 8.8 · High
Attack vector Network
Attack complexity Low
Privileges required None
User interaction Required
Scope Unchanged
Confidentiality High
Integrity impact High
Availability impact High
Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H