Advisory record · GHSA-x7cr-6qr6-2hh6

Missing input validation can lead to command execution in composer

CVSS 8.3 HighEPSS 0.019 · 79th percentile

Published by the GitHub Advisory Database at 22 Apr 2022, 20:15 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
composer/composerPackagist<1.10.26 || >=2.0, <2.2.12 || >=2.3, <2.3.51.10.26, 2.2.12, 2.3.5
Identifiers
GHSA-x7cr-6qr6-2hh6 · BIT-composer-2022-24828 · CVE-2022-24828 · PKSA-6zmq-d6mk-r5wm
Weakness (CWE)
CWE-20 · CWE-88 · CWE-94
Published
22 Apr 2022
Updated
21 Feb 2024

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

Composer versions below 1.10.26, from 2.0 before 2.2.12, and from 2.3 before 2.3.5 are vulnerable to argument injection in the VcsDriver getFileContent() method when the Git or Mercurial driver is used. An attacker who controls a Git or Mercurial repository listed in a project's composer.json, or who sets the readme field, can inject parameters and run arbitrary commands. Upgrade to Composer 1.10.26, 2.2.12, or 2.3.5 or later.

Written 4 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
8.3 High 3.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:H CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.019, the 79th percentile, on 16 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 13 Apr 2022, 14:55 UTC Published by the maintainers as a GitHub repository advisory
  2. 31 Oct 2026, 14:30 UTC First seen by agentprime
  3. 31 Oct 2026, 14:30 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.