1. Accueil
  2. Vulnérabilités
  3. CVE-2022-24828

CVE-2022-24828

Composer is a dependency manager for the PHP programming language. Integrators using Composer code to call…

Publiée le 13 avr. 2022 · modifiée le 17 juin 2026 · Sources : NVD, EPSS (FIRST)

Moyen 58/100

Résumé

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.

Aucune traduction française : description d’origine affichée.

Produits et versions affectés

Fedoraproject (3 ligne(s))
Fedoraproject
ProduitVersionsCorrigé dansSource
Fedora 34 — NVD
Fedora 35 — NVD
Fedora 36 — NVD
Getcomposer (3 ligne(s))
Getcomposer
ProduitVersionsCorrigé dansSource
Composer avant 1.10.26 (exclu) — NVD
Composer de 2.0.0 (inclus) à 2.2.12 (exclu) — NVD
Composer de 2.3.0 (inclus) à 2.3.5 (exclu) — NVD
Tenable (1 ligne(s))
Tenable
ProduitVersionsCorrigé dansSource
Tenable.sc avant 5.21.0 (exclu) — NVD

Correctif

Non renseigné par l’éditeur.

Contournement

Aucun contournement renseigné.

Savoir si vous êtes touché

Aucune méthode de vérification renseignée.

Chronologie

  1. — Publication de la CVE (cve)

Références

Provenance des données

Statut
NVD
Date de publication
NVD
Description
NVD
Score CVSS
NVD
Faiblesse (CWE)
NVD
Vecteur CVSS
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (CVSS 3.1, NVD)
Faiblesse
CWE-88 · Autre (CWE-88)

Comment sont obtenues et calculées ces données