> CVE-2022-24828 [HIGH]

« BACK_TO_HOME
PUBLISHED
2022-04-13 21:15
MODIFIED
2024-11-21 06:51
CVSS_SCORE V3
8.3
EPSS (Prob. Exploit)
1.89%
Top 20.4%
DATA SOURCES:
NVD 🔗 2025-10-18 CVE PROJECT 🔗 2026-01-19 FIRST EPSS 🔗 2026-11-08 GITHUB 🔗 2026-11-17 OSV 🔗 2026-11-15

> DESCRIPTION

Composer is a dependency manager for the PHP programming language. Integrators using Composer code to call `VcsDriver::getFileContent` can have a code injection vulnerability if the user can control the `$file` or `$identifier` argument. This leads to a vulnerability on packagist.org for example where the composer.json's `readme` field can be used as a vector for injecting parameters into hg/Mercurial via the `$file` argument, or git via the `$identifier` argument if you allow arbitrary data there (Packagist does not, but maybe other integrators do). Composer itself should not be affected by the vulnerability as it does not call `getFileContent` with arbitrary data into `$file`/`$identifier`. To the best of our knowledge this was not abused, and the vulnerability has been patched on packagist.org and Private Packagist within a day of the vulnerability report.

> AFFECTED_PRODUCTS

Fedoraproject - Fedora
Version: 34
Fedoraproject - Fedora
Version: 35
Fedoraproject - Fedora
Version: 36
Getcomposer - Composer
< 1.10.26
Getcomposer - Composer
>= 2.0.0 < 2.2.12
Getcomposer - Composer
>= 2.3.0 < 2.3.5
Tenable - Tenable.sc
< 5.21.0

> CVSS V3 METRICS

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

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Network (N)
Exploit possible à distance via réseau (HTTP, API, etc.)
AC (Complexité d'Attaque)
Attack Complexity
High (H)
Conditions spécifiques doivent être réunies pour exploiter
PR (Privilèges Requis)
Privileges Required
None (N)
Aucune authentification requise
UI (Interaction Utilisateur)
User Interaction
Required (R)
Nécessite une action utilisateur (clic lien, ouverture fichier, etc.)
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-x7cr-6qr6-2hh6 HIGH

Missing input validation can lead to command execution in composer

AFFECTED PACKAGES:
COMPOSER / composer/composer
>= 2.3, < 2.3.5
Fixed in: 2.3.5
COMPOSER / composer/composer
>= 2.0, < 2.2.12
Fixed in: 2.2.12
COMPOSER / composer/composer
< 1.10.26
Fixed in: 1.10.26

> OSV (GOOGLE OPEN SOURCE VULNERABILITIES)

Missing input validation can lead to command execution in composer

AFFECTED PACKAGES:
Unknown / Unknown
21 versions affected
ALIASES:
BIT-composer-2022-24828, GHSA-x7cr-6qr6-2hh6

> HISTORIQUE DES MODIFICATIONS

Première apparition
13/04/2022 21:15
Source: NVD
📊 ENRICHISSEMENT 18/10/2025 14:32
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