Chainguard: composer: security update to 2.7.7-r0

high Tenable Self-Hosted Container Security Plugin ID 487419

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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.
(CVE-2024-35241)

Solution

Update the composer library and its related packages to version 2.7.7-r0 or later.

Plugin Details

Severity: High

ID: 487419

Version: Revision 1.1

Type: Local

Published: 12/1/2026

Updated: 12/1/2026

Risk Information

VPR

Risk Factor: Medium

Score: 4.9

Percentile: 57.85

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 7.4

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2024-35241

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 7.7

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Vulnerability Publication Date: 6/10/2024

Reference Information

CVE: CVE-2024-35241