> CVE-2024-24821 [HIGH]

« BACK_TO_HOME
PUBLISHED
2024-02-09 00:15
MODIFIED
2024-11-21 08:59
CVSS_SCORE V3
8.8
EPSS (Prob. Exploit)
0.28%
Top 79.4%
DATA SOURCES:
NVD 🔗 2025-10-18 CVE PROJECT 🔗 2026-01-19 FIRST EPSS 🔗 2026-11-15 GITHUB 🔗 2026-11-04 OSV 🔗 2026-03-01

> DESCRIPTION

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

> AFFECTED_PRODUCTS

Getcomposer - Composer
>= 2.0.0 < 2.2.23
Getcomposer - Composer
>= 2.3.0 < 2.7.0

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Local (L)
Exploit nécessite un accès local au système
AC (Complexité d'Attaque)
Attack Complexity
Low (L)
Peu de conditions requises pour exploiter
PR (Privilèges Requis)
Privileges Required
Low (L)
Authentifié avec compte utilisateur basique
UI (Interaction Utilisateur)
User Interaction
None (N)
Aucune interaction utilisateur nécessaire
S (Périmètre)
Scope
Changed (C)
Impact s'étend au-delà du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
High (H)
Divulgation totale d'informations
I (Impact Intégrité)
Integrity Impact
High (H)
Modification totale des données possible
A (Impact Disponibilité)
Availability Impact
High (H)
Interruption totale du service possible

> RÉSUMÉ DES IMPACTS

Confidentialité
High
Divulgation totale d'informations
Intégrité
High
Modification totale des données possible
Disponibilité
High
Interruption totale du service possible

> GITHUB SECURITY ADVISORY

GHSA-7c6p-848j-wh5h HIGH

Composer code execution and possible privilege escalation via compromised InstalledVersions.php or installed.php

AFFECTED PACKAGES:
COMPOSER / composer/composer
>= 2.3.0-rc1, < 2.7.0
Fixed in: 2.7.0
COMPOSER / composer/composer
>= 2.0.0-alpha1, < 2.2.23
Fixed in: 2.2.23

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

Code execution and possible privilege escalation via compromised InstalledVersions.php or installed.php in Composer

AFFECTED PACKAGES:
Unknown / Unknown
40 versions affected
ALIASES:
BIT-composer-2024-24821, GHSA-7c6p-848j-wh5h

> HISTORIQUE DES MODIFICATIONS

Première apparition
09/02/2024 00:15
Source: NVD
📊 ENRICHISSEMENT 18/10/2025 14:48
CVEPROJECT
Champ modifié: CVE Project
Ancienne valeur:
Non
Nouvelle valeur:
Oui
Total des modifications: 1 Dernière mise à jour: 1 year ago
« BACK_TO_HOME