Advisory

DEBIAN-CVE-2024-24821

Also known as: CVE-2024-24821

Summary

The record has no summary.

Details

Composer is a dependency Manager for the PHP language. In affected versions several files within the local working directory are included during the invocation of Composer and in the context of the executing user. As such, under certain conditions arbitrary code execution may lead to local privilege escalation, provide lateral user movement or malicious code execution when Composer is invoked within a directory with tampered files. All Composer CLI commands are affected, including composer.phar's self-update. The following scenarios are of high risk: Composer being run with sudo, Pipelines which may execute Composer on untrusted projects, Shared environments with developers who run Composer individually on the same project. This vulnerability has been addressed in versions 2.7.0 and 2.2.23. It is advised that the patched versions are applied at the earliest convenience. Where not possible, the following should be addressed: Remove all sudo composer privileges for all users to mitigate root privilege escalation, and avoid running Composer within an untrusted directory, or if needed, verify that the contents of vendor/composer/InstalledVersions.php and vendor/composer/installed.php do not include untrusted code. A reset can also be done on these files by the following:sh rm vendor/composer/installed.php vendor/composer/InstalledVersions.php composer install --no-scripts --no-plugins

Severity

High Basis: CVSS v3 score 7.8, vector CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2024-02-09 00:15 UTC
Modified
2026-11-02 12:01 UTC

Affected packages and fixes

composer

Debian packages (deb) · Debian 12

Affected

  • introduced 0, fixed 2.5.5-1+deb12u1 (ecosystem)

Fixed versions

2.5.5-1+deb12u1

Fix

  • Fixed version 2.5.5-1+deb12u1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

composer

Debian packages (deb) · Debian 13

Affected

  • introduced 0, fixed 2.7.1-1 (ecosystem)

Fixed versions

2.7.1-1

Fix

  • Fixed version 2.7.1-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

composer

Debian packages (deb) · Debian 14

Affected

  • introduced 0, fixed 2.7.1-1 (ecosystem)

Fixed versions

2.7.1-1

Fix

  • Fixed version 2.7.1-1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences