
CVE catalog
CVE-2024-24821
Composer vulnerabilities
- Severity
- High · CVSS 7.8
CVSS: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.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | composer | sid | 2.10.3-1 | fixed |
| Debian | composer | forky | 2.10.3-1 | fixed |
| Debian | composer | trixie | 2.8.8-1+deb13u3 | fixed |
| Debian | composer | bookworm | 2.5.5-1+deb12u5 | fixed |
| Debian | composer | bookworm-security | 2.5.5-1+deb12u2 | fixed |
| Ubuntu | composer | noble | 2.7.1-2ubuntu0.1~esm1 | fixed |
| Suse | php-composer2 | linux enterprise module for web and scripting 15 sp5 | 2.2.3-150400.3.9.1 | fixed |
| Suse | php-composer2 | linux enterprise high performance computing 15 sp4-espos | 2.2.3-150400.3.9.1 | fixed |
| Suse | php-composer2 | linux enterprise high performance computing 15 sp4-ltss | 2.2.3-150400.3.9.1 | fixed |
| Suse | php-composer2 | linux enterprise server 15 sp4-ltss | 2.2.3-150400.3.9.1 | fixed |
| Suse | php-composer2 | linux enterprise server for sap applications 15 sp4 | 2.2.3-150400.3.9.1 | fixed |
| Suse | php-composer2 | manager server 4.3 | 2.2.3-150400.3.9.1 | fixed |
| Opensuse | php-composer2 | leap 15.5 | 2.2.3-150400.3.9.1 | fixed |
| Opensuse | php-composer2 | tumbleweed | 2.7.1-1.1 | fixed |
| Ubuntu | composer | pro | 2.0.9-2ubuntu2 | vulnerable |
| Ubuntu | composer | pro | 2.0.9-2ubuntu3 | vulnerable |
| Ubuntu | composer | pro | 2.0.13-1ubuntu1 | vulnerable |
| Ubuntu | composer | pro | 2.1.12-1ubuntu1 | vulnerable |
| Ubuntu | composer | pro | 2.2.6-2ubuntu4 | vulnerable |
| Ubuntu | composer | pro | 2.2.6-2ubuntu4+esm1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | composer | source | sid | 2.7.1-1 | not yet assigned | Not reported | [1063603] |
| Debian | composer | source | forky | 2.7.1-1 | not yet assigned | Not reported | [1063603] |
| Debian | composer | source | trixie | 2.7.1-1 | not yet assigned | Not reported | [1063603] |
| Debian | composer | source | bookworm | 2.5.5-1+deb12u1 | not yet assigned | Not reported | [1063603] |
| Ubuntu | composer | deb | noble | 2.7.1-2ubuntu0.1~esm1 | Not reported | Not reported | Not reported |
| Suse | php-composer2 | rpm | linux enterprise module for web and scripting 15 sp5 | 2.2.3-150400.3.9.1 | Not reported | SUSE-SU-2024:0592-1 | Not reported |
| Suse | php-composer2 | rpm | linux enterprise high performance computing 15 sp4-espos | 2.2.3-150400.3.9.1 | Not reported | SUSE-SU-2024:0592-1 | Not reported |
| Suse | php-composer2 | rpm | linux enterprise high performance computing 15 sp4-ltss | 2.2.3-150400.3.9.1 | Not reported | SUSE-SU-2024:0592-1 | Not reported |
| Suse | php-composer2 | rpm | linux enterprise server 15 sp4-ltss | 2.2.3-150400.3.9.1 | Not reported | SUSE-SU-2024:0592-1 | Not reported |
| Suse | php-composer2 | rpm | linux enterprise server for sap applications 15 sp4 | 2.2.3-150400.3.9.1 | Not reported | SUSE-SU-2024:0592-1 | Not reported |
| Suse | php-composer2 | rpm | manager server 4.3 | 2.2.3-150400.3.9.1 | Not reported | SUSE-SU-2024:0592-1 | Not reported |
| Opensuse | php-composer2 | rpm | leap 15.5 | 2.2.3-150400.3.9.1 | Not reported | SUSE-SU-2024:0592-1 | Not reported |
| Opensuse | php-composer2 | rpm | tumbleweed | 2.7.1-1.1 | Not reported | OPENSUSE-SU-2024:13681-1 | Not reported |
| Ubuntu | composer | deb | pro | 2.2.6-2ubuntu4+esm1 | Not reported | UBUNTU-CVE-2024-24821 | Not reported |
OpenFactory catalog packages
Matching against OpenFactory catalog package versions is in progress.
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2024_0592-1.json]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2024-24821]
- [https://osv.dev/vulnerability/DSA-5632-1]
- [https://osv.dev/vulnerability/SUSE-SU-2024:0592-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2024-24821]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:13681-1]
- [https://security-tracker.debian.org/tracker/CVE-2024-24821]
- [https://ubuntu.com/security/notices/USN-7603-1]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [SUSE security advisories and VEX] · [Ubuntu Security Notices (USN)]