CVE catalog

CVE-2024-24821

Composer vulnerabilities

[CVE catalog]

Severity
High · CVSS 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.28% · Oct 25, 2026

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 ```

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiancomposersid2.10.3-1fixed
Debiancomposerforky2.10.3-1fixed
Debiancomposertrixie2.8.8-1+deb13u3fixed
Debiancomposerbookworm2.5.5-1+deb12u5fixed
Debiancomposerbookworm-security2.5.5-1+deb12u2fixed
Ubuntucomposernoble2.7.1-2ubuntu0.1~esm1fixed
Susephp-composer2linux enterprise module for web and scripting 15 sp52.2.3-150400.3.9.1fixed
Susephp-composer2linux enterprise high performance computing 15 sp4-espos2.2.3-150400.3.9.1fixed
Susephp-composer2linux enterprise high performance computing 15 sp4-ltss2.2.3-150400.3.9.1fixed
Susephp-composer2linux enterprise server 15 sp4-ltss2.2.3-150400.3.9.1fixed
Susephp-composer2linux enterprise server for sap applications 15 sp42.2.3-150400.3.9.1fixed
Susephp-composer2manager server 4.32.2.3-150400.3.9.1fixed
Opensusephp-composer2leap 15.52.2.3-150400.3.9.1fixed
Opensusephp-composer2tumbleweed2.7.1-1.1fixed
Ubuntucomposerpro2.0.9-2ubuntu2vulnerable
Ubuntucomposerpro2.0.9-2ubuntu3vulnerable
Ubuntucomposerpro2.0.13-1ubuntu1vulnerable
Ubuntucomposerpro2.1.12-1ubuntu1vulnerable
Ubuntucomposerpro2.2.6-2ubuntu4vulnerable
Ubuntucomposerpro2.2.6-2ubuntu4+esm1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiancomposersourcesid2.7.1-1not yet assignedNot reported[1063603]
Debiancomposersourceforky2.7.1-1not yet assignedNot reported[1063603]
Debiancomposersourcetrixie2.7.1-1not yet assignedNot reported[1063603]
Debiancomposersourcebookworm2.5.5-1+deb12u1not yet assignedNot reported[1063603]
Ubuntucomposerdebnoble2.7.1-2ubuntu0.1~esm1Not reportedNot reportedNot reported
Susephp-composer2rpmlinux enterprise module for web and scripting 15 sp52.2.3-150400.3.9.1Not reportedSUSE-SU-2024:0592-1Not reported
Susephp-composer2rpmlinux enterprise high performance computing 15 sp4-espos2.2.3-150400.3.9.1Not reportedSUSE-SU-2024:0592-1Not reported
Susephp-composer2rpmlinux enterprise high performance computing 15 sp4-ltss2.2.3-150400.3.9.1Not reportedSUSE-SU-2024:0592-1Not reported
Susephp-composer2rpmlinux enterprise server 15 sp4-ltss2.2.3-150400.3.9.1Not reportedSUSE-SU-2024:0592-1Not reported
Susephp-composer2rpmlinux enterprise server for sap applications 15 sp42.2.3-150400.3.9.1Not reportedSUSE-SU-2024:0592-1Not reported
Susephp-composer2rpmmanager server 4.32.2.3-150400.3.9.1Not reportedSUSE-SU-2024:0592-1Not reported
Opensusephp-composer2rpmleap 15.52.2.3-150400.3.9.1Not reportedSUSE-SU-2024:0592-1Not reported
Opensusephp-composer2rpmtumbleweed2.7.1-1.1Not reportedOPENSUSE-SU-2024:13681-1Not reported
Ubuntucomposerdebpro2.2.6-2ubuntu4+esm1Not reportedUBUNTU-CVE-2024-24821Not reported

[Debian bug #1063603]

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

References